Here is my code:
// head file
class JsonResponse
{
public:
template<typename T>
void add(const string &, const T &);
};
template<typename T>
void JsonResponse::add(const string & name, const T & t)
{
// do something
}
I compile it and get this error:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Can you help me? thanks a lot.