X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/234b2f4e892e942c28fa9c8bc4f57af1214b1424..3386cb2452dc4e2d3a0b58989e0e2bc445c3f4bb:/include/xbt/ex.hpp diff --git a/include/xbt/ex.hpp b/include/xbt/ex.hpp index 4208eead89..9b6ff5ff32 100644 --- a/include/xbt/ex.hpp +++ b/include/xbt/ex.hpp @@ -25,10 +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("") {} @@ -43,7 +41,7 @@ struct XBT_PUBLIC() xbt_ex : 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;