Guest User

Untitled

a guest
Feb 21st, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. template<typename T> class x {};
  2.  
  3. //typedef x xx;
  4.  
  5. class y {
  6. void x() {}
  7. x<int> z;
  8. };
  9.  
  10.  
  11.  
  12. /*
  13. $ g++ names2.cc
  14. names2.cc:7: error: ISO C++ forbids declaration of ‘x’ with no type
  15. names2.cc:7: error: expected ‘;’ before ‘<’ token
  16. */
Add Comment
Please, Sign In to add comment