Hello,
I've been hard at work converting a program from MFC to wxWidgets but Ive run into a problem. Here is the error I get when I compile:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\vector(249) : warning C4663: C++ language change: to explicitly specialize class template 'vector' use the following syntax:
template<> class vector<bool,class std::allocator<unsigned int> > ...
Im not sure whats going wrong here, anyone know what this error is all about? It didn't used to be there, my guess is a problem with the project settings?
(I did post this in the general programming forum earlier by accident - any ops able to move it for me? )
C4663: C++ language change Topic is solved
As the message suggetsts: You are using a deprecated C++ construct.
The Syntax for template specialisation has changed a few years ago.
The Syntax for template specialisation has changed a few years ago.
Code: Select all
// Your Template-Class:
template<class T> class MyTemplateClass { ... };
//To specialize this class for int the old C++ Syntax was
class MyTemplateClass<int> { ... };
// The new C++ Syntax for template specialisation is now this:
template<> class MyTemplateClass<int> { ... };