template< bool isEnable >
struct A{
template< bool isEnable >//クラスのテンプレート引数と一致している
void func(){ cout << "メンバにアクセスする何らかの処理"; }
template<>
void func< false >(){ cout << "多分、エラーを吐く処理"; }
/*その他とても多くの関数など…*/
};
int main(){
A< true > object;
object.func();//エラー!
return 0;
}
どう修正すればよいでしょうか。ご教示願います。