fork download
  1. #include <type_traits>
  2. template<class T> struct dump;
  3.  
  4. dump<typename std::common_type<int, const int>::type> a;
Compilation error #stdin compilation error #stdout 0s 3136KB
stdin
Standard input is empty
compilation info
prog.cpp:4:55: error: aggregate 'dump<int> a' has incomplete type and cannot be defined
 dump<typename std::common_type<int, const int>::type> a;
                                                       ^
stdout
Standard output is empty