X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f8446dd01aa71a755c74c9b663ce81490055316b..e91f26820b30a2d87b4c723e92eaebbd2dc5ce15:/include/simgrid/Exception.hpp diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index a8520fc88b..342bd4bb2e 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -154,14 +154,7 @@ DECLARE_SIMGRID_EXCEPTION(ParseError, PARSE_ERROR_CONSTRUCTOR); #undef PARSE_ERROR_CONSTRUCTOR /** Exception raised by xbt_enforce, when an assertion is not satisfied */ -#define ASSERTION_ERROR_CONSTRUCTOR \ - template AssertionError(const char * f, Args... args) \ - : Exception(XBT_THROW_POINT, xbt::string_printf(f, args...)) \ - { \ - } - -DECLARE_SIMGRID_EXCEPTION(AssertionError, ASSERTION_ERROR_CONSTRUCTOR); -#undef ASSERTION_ERROR_CONSTRUCTOR +DECLARE_SIMGRID_EXCEPTION(AssertionError); #undef DECLARE_SIMGRID_EXCEPTION