G
Gary li
Hi.all
look coding as below please:
class A
{
public:
template<class T> create(){return new T;}
};
int main()
{
A a;
int *n = a.create<int>();
delete n;
return 0;
};
compiling is fail with vc6 but successful with g++ under linux.
look coding as below please:
class A
{
public:
template<class T> create(){return new T;}
};
int main()
{
A a;
int *n = a.create<int>();
delete n;
return 0;
};
compiling is fail with vc6 but successful with g++ under linux.