Код: Выделить всё
// Require T has method T::A(arguments), T::B(arguments), since they will
// be used in the class template.
template
class Foo
{
void Fun()
{
mT.A();
mT.B();
}
};
Подробнее здесь: https://stackoverflow.com/questions/174 ... -parameter
Мобильная версия