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 C2894

templates cannot be declared to have 'C' linkage

Possible cause

Example

extern “C” {

   template<class T> class stack {   //error
   };
   template<class T> void f(const T &aT){} //error
}

and

extern “C” template<class T> void f(const T &aT) {} //error