就这么几行程序,但是编译不过去,请大家帮忙.
class myclass
{
int i;
int ii;
};
template<class GxType>
typedef GxType *ITEM_NEW(void);
template<class GxType>
void fun(ITEM_NEW* aa)
{
}
myclass *intNew()
{
return new myclass;
}
int main(int argc, char* argv[])
{
fun<myclass>(intNew);
printf("Hello World!\n");
return 0;
}