error C2039: 'bad_cast' : is not a member of 'std',该怎么解决
error C2039: 'bad_cast' : is not a member of 'std'
catch ( std::bad_cast& e)
{
OUTPUTEXCEPTIONSTRING( e.what() );
}
编译器会提示如标题的错误,请问这是什么原因。
谢谢~
------解决方案--------------------
'bad_cast' 不是std里面的成员
------解决方案--------------------
std名字空间里没有bad_cast
catch ( std::bad_cast& e)
{
OUTPUTEXCEPTIONSTRING( e.what() );
}
编译器会提示如标题的错误,请问这是什么原因。
谢谢~
------解决方案--------------------
'bad_cast' 不是std里面的成员
------解决方案--------------------
std名字空间里没有bad_cast