错那了,关于 template
错那了,关于 template
我是从C++Templates 里仿照写的
<<<<<<<H>>>>>>
#pragma once
export template <class T>
class rxg
{
public:
__declspec(dllexport) T Tem(T a);
};
报错如下:
warning C4237: 'export' keyword is not yet supported, but reserved for future use
error C2143: syntax error : missing ';' before ''template<''
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Build log was saved at "Shared\Debug\BuildLog.htm"
谢谢:)