fork(1) download
  1. template <typename T>
  2. struct Foo
  3. {
  4. enum : bool { value = false };
  5. };
  6.  
  7. template <>
  8. struct Foo<size_t i>
  9. {
  10. enum : int { value = i };
  11. };
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:8:12: error: ‘size_t’ was not declared in this scope
 struct Foo<size_t i>
            ^~~~~~
prog.cpp:8:20: error: template argument 1 is invalid
 struct Foo<size_t i>
                    ^
stdout
Standard output is empty