Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc 12.2.0

Options
Warnings
Boost 1.81.0
C++14
-pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.81.0-gcc-12.2.0/include -std=c++14 -pedantic
prog.cc: In instantiation of 'class CMyClass<std::vector<float> >':
prog.cc:26:36:   required from here
prog.cc:12:57: error: static assertion failed: Type not allowed
   12 |     static_assert (std::is_same <T, std::string>::value ||
      |                                                   ~~~~~~^~
   13 |                    std::is_same <T, std::vector <int>>::value, "Type not allowed");
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:12:57: note: '(((bool)std::integral_constant<bool, false>::value) || ((bool)std::integral_constant<bool, false>::value))' evaluates to false
Exit Code:
1