[Gc] VC++ warning about new in VC++2008 removed
meessen at cppm.in2p3.fr
Sun Dec 21 06:30:37 PST 2008
I finally got rid of the warning by simply adding #include <string>
before including gc_cpp.h.
I suspect there is some #pragma warning (disable : 4985) somewhere
because there is a missing
#pragma warning (supress: 4985) in crtdbg.h in front of the new
I'll stick to the first trick/hack.
Adding an #include <new> in gc_cpp.h and the above pragma may avoid
other people to stumble on this problem.
More information about the Gc