Код: Выделить всё
myfunc()
template class opt_arg{
private: void myfunc(){
/*Do generic stuff */
}
/* Can I insert here the bool specialization? */
};
/* The specialization "inserted outside of the class body": */
template
inline void opt_arg::myfunc(){
/* Do bool specific stuff*/
}
< /code>
Как я уже упоминал, он работает нормально. Мне просто интересно, что я могу вставить специализацию функции в «Классовое тело»?
Подробнее здесь: https://stackoverflow.com/questions/794 ... class-body