这是在 VS 2008 上编译的,但它似乎是模板的非标准用法。
template <class T>
class Foo
{
public:
void bar(Foo<int> arg)
{
// do some stuff here
}
// more code ...
};
Foo<int>
由于模板专业化包含在其自己的模板类的定义中,是否存在问题?
这是在 VS 2008 上编译的,但它似乎是模板的非标准用法。
template <class T>
class Foo
{
public:
void bar(Foo<int> arg)
{
// do some stuff here
}
// more code ...
};
Foo<int>
由于模板专业化包含在其自己的模板类的定义中,是否存在问题?