2009-11-04から1日間の記事一覧
template class A { class B { T t; }; B b; B Return0() { return b; } B Return1(); }; template typename A::B Return1(){ return b; }; ・クラス宣言内部に書くか、typenameで明示的にしないとVC++だと通らないっぽい。
template class A { class B { T t; }; B b; B Return0() { return b; } B Return1(); }; template typename A::B Return1(){ return b; }; ・クラス宣言内部に書くか、typenameで明示的にしないとVC++だと通らないっぽい。