Why the bad_alloc(const char*) was made private in Visual C++ 2012?
问题 I am just trying to compile a bit bigger project using the Visual Studio 2012 Release Candidate, C++. The project was/is compiled using the VS2010 now. (I am just greedy to get the C++11 things, so I tried. :) Apart of things that I can explain by myself, the project uses the code like this: ostringstream ostr; ostr << "The " __FUNCTION__ "() failed to malloc(" << i << ")."; throw bad_alloc(ostr.str().c_str()); The compiler now complains error C2248: 'std::bad_alloc::bad_alloc' : cannot