fork(2) download
  1. #include <vector>
  2.  
  3. template<class Type> struct S;
  4.  
  5. void foo()
  6. {
  7. std::vector<std::vector<int>> a;
  8. auto iter = a.begin();
  9. S<decltype(iter)> b;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void foo()’:
prog.cpp:9:22: error: aggregate ‘S<__gnu_cxx::__normal_iterator<std::vector<int>*, std::vector<std::vector<int> > > > b’ has incomplete type and cannot be defined
    S<decltype(iter)> b;
                      ^
stdout
Standard output is empty