社区
C++ Builder
帖子详情
error C2039: 'bad_cast' : is not a member of 'std'
AfternoonLeaf
2011-08-31 05:05:05
catch ( std::bad_cast& e)
{
OUTPUTEXCEPTIONSTRING( e.what() );
}
编译器会提示如标题的错误,请问这是什么原因。
谢谢~
...全文
283
4
打赏
收藏
error C2039: 'bad_cast' : is not a member of 'std'
catch ( std::bad_cast& e) { OUTPUTEXCEPTIONSTRING( e.what() ); } 编译器会提示如标题的错误,请问这是什么原因。 谢谢~
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
AfternoonLeaf
2011-09-02
打赏
举报
回复
在网上看到是因为编译器版本旧,需要更新mfc库
我不懂电脑
2011-09-01
打赏
举报
回复
std名字空间里没有bad_cast
AfternoonLeaf
2011-09-01
打赏
举报
回复
突然想起来了,是因为没升级vs 2008的补丁。
能告诉我这是怎么回事吗
zzbinfo
2011-08-31
打赏
举报
回复
'bad_cast' 不是std里面的成员
Google C++ Style Guide(Google C++编程规范)高清PDF
A decent rule of thumb is to not inline a function if it is more than 10 lines long. Beware of destructors, which are often longer than they appear because of implicit
member
- and base-destructor ...
一个跨平台的CString源码
// - Added a specialization of
std
::swap for C
Std
String. Thanks // to Mike Crusader for suggesting this! It's commented out // because you're not supposed to inject your own code into the ...
error
C2039
: “
bad
_alloc”: 不是“
std
”的成员
error
C2039
: “
bad
_alloc”: 不是“
std
”的成员
error
C3861: “
bad
_alloc”: 找不到标识符 解决方法: #include <exception>
boost:lexical_
cas
t
顾名思义,lexical_
cas
t库进行”字面值“的转换,类似C中的atoi()函数,可以进行字符串与整数/浮点数之间的字面转换 引入 标准C和c++库提供了许多用于执行此类转换的工具。但是,它们的易用性、可扩展性和安全性各...
C++异常
} } 5)
std
::
bad
_exception This is a special type of exception specifically designed to be listed in the dynamic-exception-specifier of a function (i.e., in its throw specifier). If a function ...
C++ Builder
13,826
社区成员
102,678
社区内容
发帖
与我相关
我的任务
C++ Builder
C++ Builder相关内容讨论区
复制链接
扫一扫
分享
社区描述
C++ Builder相关内容讨论区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章