fork(1) download
  1. #include <iostream>
  2.  
  3. struct Outer
  4. {
  5. template<typename T>
  6. struct Inner
  7. {
  8. };
  9. template<>
  10. struct Inner<double>
  11. {
  12. };
  13. };
  14.  
  15. int main()
  16. {
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:9:11: error: explicit specialization in non-namespace scope ‘struct Outer’
  template<>
           ^
stdout
Standard output is empty