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 C2901

'declaration1' : function differs from 'declaration2' only by return type or calling convention

Under ANSI compatibility (/Za), a function template specialization cannot differ from the primary function template by return type or calling convention only.

Example

template<class T> void __cdecl f(T);
template<> void __stdcall f(int);