fork download
  1. using namespace std;
  2.  
  3. template<typename T, typename R>
  4. class tContainer_t
  5. {
  6. R Container;
  7. public:
  8. tContainer_t();
  9. ~tContainer_t();
  10.  
  11.  
  12. };
  13.  
  14. template<typename T, typename R>
  15. tContainer_t<T, R>::tContainer_t() : Container()
  16. {
  17.  
  18. }
  19.  
  20.  
  21. int main()
  22. {
  23. tContainer_t<int, list<int*> > l;
  24. return 0;
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:23:27: error: 'list' was not declared in this scope
prog.cpp:23:36: error: template argument 2 is invalid
prog.cpp:23:38: error: expected unqualified-id before '>' token
stdout
Standard output is empty