*
* @ingroup XBT_ex_c
*/
-struct XBT_PUBLIC() xbt_ex :
- std::runtime_error,
- simgrid::xbt::WithContextException {
-
+class XBT_PUBLIC xbt_ex : public std::runtime_error, public simgrid::xbt::WithContextException {
+public:
xbt_ex() :
std::runtime_error("")
{}
simgrid::xbt::WithContextException(throwpoint, simgrid::xbt::backtrace())
{}
- ~xbt_ex();
+ ~xbt_ex(); // DO NOT define it here -- see ex.cpp for a rationale
/** Category (what went wrong) */
xbt_errcat_t category = unknown_error;