Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- auto l = 4;
- cout<<l<<endl;
- return 0;
- }
- template <class T> class diag;
- int main()
- {
- auto l = 4;
- auto& m = l;
- diag<decltype (l)> ltype;
- diag<decltype (m)> mtype;
- return 0;
- }
- error C2079: 'ltype' uses undefined class 'diag<int>'
- error C2079: 'mtype' uses undefined class 'diag<int &>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement