In .cpp file I write:
Code:#include "file.h" #include <map>; using namespace std; class CPartHolder; typedef map<int,CPartHolder*> type_MapPartHolder; type_MapPartHolder mapPartHolder; class CPartHolder { };
works fine
but if I move or add
declarations:
file.h :
Code:#include <map>; using namespace std;
into .h file
appeared STL error
"operator new not defined for...."
What is the reason of this and gow to resolve
such a problem?
Thanks




Reply With Quote