Compiler Error C2929
'identifier' : explicit instantiation; cannot explicitly force and suppress instantiation of template-class member
You cannot explicitly instantiate an identifier while preventing it from being instantiated.
The following sample generates C2929:
// C2929.cpp
// compile with: /c
template<typename T>
class A {
public:
A() {}
};
template A<int>::A();
extern template A<int>::A(); // C2929
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for