SunOS 5.10 CC 5.3编译问题
本帖最后由 smallnat 于 2013-04-07 22:59:21 编辑
class A
{
public:
template <typename T>
void func(const T& t)
{
}
};
namespace TL
{
class B
{
};
};
int main()
{
A* pa = new A;
TL::B b;
// A a = *pa;
// a.func(b);
pa->func<TL::B>(b);
return 0;
}
CC -o test -g test.cpp
"test.cpp", line 23: Error: Unexpected type name "TL::B" encountered.
1 Error(s) detected.
CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15