#include <iostream>
template <class T>
class A {
class B {
public:
T value;
};
public:
B b;
};
int main()
{
A<int> a;
a.b.value = 7;
std::cout << a.b.value << std::endl;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp0ZW1wbGF0ZSA8Y2xhc3MgVD4KY2xhc3MgQSB7CiAgICBjbGFzcyBCIHsKICAgICAgICBwdWJsaWM6CgkJVCB2YWx1ZTsKCX07CiAgICBwdWJsaWM6CiAgICBCIGI7Cn07CgppbnQgbWFpbigpCnsKICAgIEE8aW50PiBhOwogICAgYS5iLnZhbHVlID0gNzsKICAgIHN0ZDo6Y291dCA8PCBhLmIudmFsdWUgPDwgc3RkOjplbmRsOwp9