Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. auto l = 4;
  8. cout<<l<<endl;
  9. return 0;
  10. }
  11.  
  12. template <class T> class diag;
  13.  
  14. int main()
  15. {
  16. auto l = 4;
  17. auto& m = l;
  18.  
  19. diag<decltype (l)> ltype;
  20. diag<decltype (m)> mtype;
  21. return 0;
  22. }
  23.  
  24. error C2079: 'ltype' uses undefined class 'diag<int>'
  25. error C2079: 'mtype' uses undefined class 'diag<int &>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement