// 29_29-16.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

template<typename T> class ClsA {
public:
	typename T::mytype a;
};

class ClsX {
public:
	typedef int mytype;
};

int _tmain(int argc, _TCHAR* argv[])
{
	ClsA<ClsX> dt;
	dt.a = 123;
	cout << "a=" << dt.a << '\n';

	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

