#include <iostream>
#include <utility>
using namespace std;
template < typename T>
struct foo {
typedef pair< T, T> PointType;
PointType point;
} ;
int main( ) {
foo< int > myFoo;
myFoo:: PointType myBar;
myBar.first = 13 ;
myBar.second = 42 ;
cout << myBar.first << ' ' << myBar.second << endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dXRpbGl0eT4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp0ZW1wbGF0ZSA8dHlwZW5hbWUgVD4Kc3RydWN0IGZvbyB7CiAgICB0eXBlZGVmIHBhaXI8VCwgVD4gUG9pbnRUeXBlOwogICAgUG9pbnRUeXBlIHBvaW50Owp9OwoKaW50IG1haW4oKSB7CiAgICBmb288aW50PiBteUZvbzsKICAgIG15Rm9vOjpQb2ludFR5cGUgbXlCYXI7CiAgICAKICAgIG15QmFyLmZpcnN0ID0gMTM7CiAgICBteUJhci5zZWNvbmQgPSA0MjsKICAgIAogICAgY291dCA8PCBteUJhci5maXJzdCA8PCAnICcgPDwgbXlCYXIuc2Vjb25kIDw8IGVuZGw7Cn0=
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:14:5: error: ‘myFoo’ is not a class, namespace, or enumeration
myFoo::PointType myBar;
^~~~~
prog.cpp:16:5: error: ‘myBar’ was not declared in this scope
myBar.first = 13;
^~~~~
stdout