NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2841

'function' : invalid template function declaration

You specified an invalid function declaration, such as:

template<typename T>
struct X {
   void mf(const T &);
};

template<>
struct X<char> {
   void mf(const char &);
};

template<char>
void X<char>::mf(const char &)
{
}

To fix the error in this code, change template<char> to template<>.