diff options
Diffstat (limited to 'absl/cleanup/internal/cleanup.h')
-rw-r--r-- | absl/cleanup/internal/cleanup.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/absl/cleanup/internal/cleanup.h b/absl/cleanup/internal/cleanup.h index a126ff30..8fbca5bd 100644 --- a/absl/cleanup/internal/cleanup.h +++ b/absl/cleanup/internal/cleanup.h @@ -43,6 +43,8 @@ constexpr bool ReturnsVoid() { template <typename Callback> class Storage { public: + Storage() = delete; + explicit Storage(Callback callback) : engaged_(true), callback_(std::move(callback)) {} |