class MyGrid {
public:
int Width;
int Height;
MyGrid(int width, int height) {
Width = width;
Height = height;
}
};
template <typename TGrid>
class HS {
public:
TGrid grid;
HS (TGrid& _grid) {
grid = _grid;
}
void myFunc1() {
cout << grid.Width << " " << grid.Height << endl;
}
};
int main (int argc, char* argv[]) {
MyGrid grid(100, 200);
HS<MyGrid> hs(grid);
hs.myFunc1();
return 0;
}