Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181120 (experimental)

Options
Warnings
Boost 1.68.0
C++03
no pedantic

Author

anonymous

over 7 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=c++98
prog.cc: In function 'int main()':
prog.cc:23:18: error: 'struct Foo<false>' has no member named 'DoStuff'; did you mean 'Stuff'?
   23 |     Foo<false>().DoStuff();
      |                  ^~~~~~~
      |                  Stuff
prog.cc: In instantiation of 'void Stuff<T, true>::DoStuff() [with T = Foo<true>]':
prog.cc:22:25:   required from here
prog.cc:11:12: warning: unused variable 'that' [-Wunused-variable]
   11 |         T* that = static_cast<T*>(this);
      |            ^~~~
Exit Code:
1