X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0a41f5d471ce7d2afcaf32a96e653c2ae397d7fb..a88a4036e14334a7a01fc40a7d547687ba6dee38:/include/simgrid/kernel/future.hpp diff --git a/include/simgrid/kernel/future.hpp b/include/simgrid/kernel/future.hpp index ffd1a33e29..9b6a5fc88b 100644 --- a/include/simgrid/kernel/future.hpp +++ b/include/simgrid/kernel/future.hpp @@ -70,6 +70,8 @@ public: // executing it later: continuation_ = std::move(continuation); break; + default: + DIE_IMPOSSIBLE; } } @@ -84,8 +86,8 @@ public: } protected: - FutureStateBase() {} - ~FutureStateBase() {}; + FutureStateBase() = default; + ~FutureStateBase() = default; /** Set the future as ready and trigger the continuation */ void set_ready() @@ -252,7 +254,7 @@ public: template class Future { public: - Future() {} + Future() = default; Future(std::shared_ptr> state): state_(std::move(state)) {} // Move type: