X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fscope-exit.hpp;h=20d9b892d34d0ff54265035b951d144a9d5b6d4b;hb=4e845c10b7b0549cdd0ad400509454399150c061;hp=e73b5792b776910c5191f6583b27cce2a2d97860;hpb=cd9adb8b829564212158943a0d279bb35322ab30;p=lttng-tools.git diff --git a/src/common/scope-exit.hpp b/src/common/scope-exit.hpp index e73b5792b..20d9b892d 100644 --- a/src/common/scope-exit.hpp +++ b/src/common/scope-exit.hpp @@ -58,6 +58,8 @@ public: * also propagate the scope_exit to another scope, should it be needed. */ scope_exit(const scope_exit&) = delete; + scope_exit& operator=(const scope_exit&) = delete; + scope_exit& operator=(scope_exit&&) = delete; scope_exit() = delete; void disarm() noexcept