- C++相談室 part115 [転載禁止]©2ch.net
500 :デフォルトの名無しさん[]:2015/01/14(水) 09:14:54.40 ID:NO/MtwMN - template<bool a,typename T>
void f(); template<typename T> void f<true,T>(){ cout<<2<<endl; } template<typename T> void f<false,T>(){ cout<<1<<endl; } がエラーになるのですがどうしたら治せますか? typename Tが無ければコンパイルできます
|