在C++中,最接近.Net NotSupportedException的替代方案是什么
What is the closest alternative to the .Net NotSupportedException in C++
标准库中最接近.Net NotSupportedException的替代方案是什么?如果我必须创建一个自己的,它在逻辑上应该从什么派生?
标准为您提供
namespace std {
class logic_error;
class domain_error;
class invalid_argument;
class length_error;
class out_of_range;
class runtime_error;
class range_error;
class overflow_error;
class underflow_error;
}
正如Jerry所说,runtime_error是其中最好的匹配,因此从中派生。
相关文章:
- gcc中cl/NODEFAULTLIB的替代方案是什么
- 在这种情况下,我们可以使用静态而不是朋友吗,还有其他解决方案是什么
- Windows(Visual Studio)中的-fpermssive标志的替代方案是什么
- 构建C 插件时的错误,该解决方案是什么
- 当涉及到快速删除时,C++矢量的替代方案是什么
- 从QTcpSocket上的数据流中连续运行复杂算法的最佳Qt线程解决方案是什么
- 正在(在构造函数中)将其包含一个不良设计的指针传递,如果是的,则解决方案是什么
- 暂停和恢复线程的最佳解决方案是什么?
- Windows上的模板有什么问题?解决方案是什么
- 标准C 库的替代方案是什么,并通过明确的实现来提升
- CppUTest中extern关键字的替代方案是什么
- 来自 std::find 的此错误的优雅解决方案是什么
- ZeroMQ 的替代方案是什么,用于移动协议缓冲区有效负载
- 原生 GUI 的解决方案是什么?
- 函数指针:从性能的角度来看,简单的规范使用是否不好?如果是这样的话,c++11的替代方案是什么
- 在C++中,最接近.Net NotSupportedException的替代方案是什么
- c++:跨平台且安全的系统(…)的替代方案是什么?
- TinyXML-2中的“TiXmlNode::FirstChild(const char *)”的替代方案是什么?
- 在windows上包含sys/times.h的替代方案是什么
- c++中嵌套for循环的替代方案是什么?