X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/48296e83ce3ba1fa3658a3a74d10a536e33b3849..8d62bb541920e2e4e0f7d1fa26a7f6eec79370c2:/src/simgrid/Exception.cpp diff --git a/src/simgrid/Exception.cpp b/src/simgrid/Exception.cpp index 89781bd198..7152419096 100644 --- a/src/simgrid/Exception.cpp +++ b/src/simgrid/Exception.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2022. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -12,6 +12,7 @@ namespace simgrid { // DO NOT define destructors for exceptions in Exception.hpp. // Defining it here ensures that the exceptions are defined only in libsimgrid, but not in libsimgrid-java. // Doing otherwise naturally breaks things (at least on freebsd with clang). +// TODO: is it still useful now that Java is gone? Exception::~Exception() = default; TimeoutException::~TimeoutException() = default; @@ -30,7 +31,7 @@ void ForcefulKillException::do_throw() throw ForcefulKillException(); } -bool ForcefulKillException::try_n_catch(const std::function& try_block) +bool ForcefulKillException::try_n_catch(const std::function& try_block) // XBT_ATTRIB_DEPRECATED_v338 { bool res; try {