template <typename>
struct A
{
template <typename>
struct B
{
};
};
template <>
template <>
struct A<int>::B<char>
{
static void foo();
};
void A<int>::B<char>::foo()
{
}
int main()
{
}
vc++编译错误信息:
错误 C2906:“void A<int>::B<char>::foo(void)”:显式特化需要“模板 <>”
在这种情况下,什么行为符合标准?