I
Igor R.
Is it permitted in Standard to specialize template member function of
a non-specialized class template? If yes, what's the correct syntax?
template<class T> struct Test
{
template<class U> void f()
{}
// MSVC permits specializations inside the class scope, but it's
seems to be non-standard:
template<> void f<int>()
{}
};
// doesn't compile both with MSVC and gcc:
template<class T>
template<>
Test::f<char>()
{}
Thanks.
a non-specialized class template? If yes, what's the correct syntax?
template<class T> struct Test
{
template<class U> void f()
{}
// MSVC permits specializations inside the class scope, but it's
seems to be non-standard:
template<> void f<int>()
{}
};
// doesn't compile both with MSVC and gcc:
template<class T>
template<>
Test::f<char>()
{}
Thanks.