由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Why does default exception use char *?
相关主题
a string define question (c++)strlen怎么实现的
关于 exception 的一个问题请教一个关于字符指针的简单问题
[合集] What are the differences between "const char* p" and "cc++ string 一问
[合集] static const代替define的performance tradeoff在哪里?Is it safe?
C++: exception: out-of-order execution?问几个问题
有大侠讲讲RTTI和exception的问题么?why int** cannot convert to const int** ?
A C++ exception question问一个打开文件的问题
问一个constructor的问题 (转载)C++ Strategies and Tactics 书上一个问题求助
相关话题的讨论汇总
话题: why话题: const话题: char话题: exception话题: does
进入Programming版参与讨论
1 (共1页)
G****n
发帖数: 618
1
Why does default exception use const char* instead of std::string
when defining the what() member function?
const char* const what() const;
I think the reason is to avoid dynamic memory allocation so no
additional exceptions are thrown, which might be caused by
the std::string class.
1 (共1页)
进入Programming版参与讨论
相关主题
C++ Strategies and Tactics 书上一个问题求助C++: exception: out-of-order execution?
C库函数:strpbrk() 的实现一问有大侠讲讲RTTI和exception的问题么?
c++ 得最基本问题A C++ exception question
蔡鸟C++ 类型问题问一个constructor的问题 (转载)
a string define question (c++)strlen怎么实现的
关于 exception 的一个问题请教一个关于字符指针的简单问题
[合集] What are the differences between "const char* p" and "cc++ string 一问
[合集] static const代替define的performance tradeoff在哪里?Is it safe?
相关话题的讨论汇总
话题: why话题: const话题: char话题: exception话题: does