std::bad_alloc的编译错误
g_yxh 2008-03-04 01:40:25 vs2005下编译,有下面的问题:
c:\program files\microsoft visual studio 8\vc\include\xdebug(83) : error C2440: '<function-style-cast>' : cannot convert from 'void *' to 'std::bad_alloc'
1> No constructor could take the source type, or constructor overload resolution was ambiguous
1> c:\program files\microsoft visual studio 8\vc\include\xdebug(79) : while compiling class template member function 'char *std::_DebugHeapAllocator<_Ty>::allocate(std::allocator<_Ty>::size_type,const void *)'
1> with
1> [
1> _Ty=char
1> ]
1> c:\program files\microsoft visual studio 8\vc\include\xdebug(106) : see reference to class template instantiation 'std::_DebugHeapAllocator<_Ty>' being compiled
1> with
1> [
1> _Ty=char
1> ]
但这个xdebug是系统的文件啊,是什么错误呢?