X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4bb73cb3914b5f7b77a9ec1f8abe728e637cc016..1d83152923e6cdedca3b28400f0582c9fb9c5419:/include/xbt/ex.hpp diff --git a/include/xbt/ex.hpp b/include/xbt/ex.hpp index e4958f9d25..9b6ff5ff32 100644 --- a/include/xbt/ex.hpp +++ b/include/xbt/ex.hpp @@ -25,8 +25,8 @@ * * @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("") {} @@ -41,7 +41,7 @@ struct XBT_PUBLIC xbt_ex : std::runtime_error, simgrid::xbt::WithContextExceptio 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;