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 C2949

'symbol' : explicit instantiation; cannot use 'auto' and 'extern' on the same template-class specialization

A template class is instantiated once using the extern storage-class specifier and once without. If you instantiate a template class more than once, you must use the same storage-class specifier for each declaration.

Example

template <class T> class X {};
extern template X<int>;
template X<int>;   // error