Language
C++
Compiler
gcc 8.2.0
Options
Warnings
Don't Use Boost
C++14
-pedantic-errors
$ g++ prog.cc -Wall -Wextra -std=c++14 -pedantic-errors
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc 8.2.0
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -std=c++14 -pedantic-errors
prog.cc: In function 'std::ostream& operator<<(std::ostream&, test)':
prog.cc:10:38: error: 'mytype' does not name a type; did you mean 'wctype'?
return stream << static_cast<mytype>(65);
^~~~~~
wctype
prog.cc: In function 'int main()':
prog.cc:15:13: error: non-template type 'test' used as a template
test<int> t;
^