2008-08-11から1日間の記事一覧

C3203 テンプレートクラスのテンプレート型にテンプレートクラスを指定する

//二つのテンプレートクラス Foo Barがある。 template<T> class Foo{} template<T> class Bar{} //Fooのテンプレート型を、『intをテンプレート型にしたBarクラス』にしたい int main(const int arg){ Foo<Bar<int>> hoge; //error C2947 Foo<Bar<int> > hoge;//OK return 0; } なん</bar<int></bar<int></t></t>…