Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 8 years ago

Language

Compiler

Options

Author

anonymous

about 8 years ago

$
prog.cc:9:54: error: prototype for 'typename std::enable_if<(sizeof (T) > 4), void>::type A::foo(T)' does not match any in class 'A'
 typename std::enable_if<(sizeof(T) > 4), void>::type A::foo(T a ) {
                                                      ^
prog.cc:5:10: error: candidate is: template<class T> void A::foo(T)
     void foo(T a);
          ^~~
prog.cc:15:55: error: prototype for 'typename std::enable_if<(sizeof (T) <= 4), void>::type A::foo(T)' does not match any in class 'A'
 typename std::enable_if<(sizeof(T) <= 4), void>::type A::foo(T a ) {
                                                       ^
prog.cc:5:10: error: candidate is: template<class T> void A::foo(T)
     void foo(T a);
          ^~~
Exit Code:
1