Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc 11.1.0

Options
Warnings
Boost 1.78.0
C++2a
no pedantic

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.78.0-gcc-11.1.0/include -std=c++2a
prog.cc: In function 'int main()':
prog.cc:5:37: error: invalid use of incomplete type 'struct type_tester<int>'
    5 |     type_tester<decltype(abs(0.1))>{};
      |                                     ^
prog.cc:3:24: note: declaration of 'struct type_tester<int>'
    3 | template<class> struct type_tester;
      |                        ^~~~~~~~~~~
prog.cc:6:43: error: invalid use of incomplete type 'struct type_tester<double>'
    6 |     type_tester<decltype(std::abs(0.1))> {};
      |                                           ^
prog.cc:3:24: note: declaration of 'struct type_tester<double>'
    3 | template<class> struct type_tester;
      |                        ^~~~~~~~~~~
Exit Code:
1