summaryrefslogtreecommitdiff
path: root/absl/cleanup/internal
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2021-01-30 06:20:07 -0800
committerGravatar Derek Mauro <dmauro@google.com>2021-01-30 09:25:37 -0500
commit184d2f8364bcb05e413ec4c72cad0cf86e712d1c (patch)
treedb3f40595666712c8911161c3f34e0de439bc55f /absl/cleanup/internal
parenta9a49560208484f1f99efdde889da6147e8722fe (diff)
Export of internal Abseil changes
-- 8c77b14bdee3f4cafb8ba520d4d050b15a949fd4 by Derek Mauro <dmauro@google.com>: Fix absl::Cleanup usage example PiperOrigin-RevId: 354702001 -- 10365da7a0aacaa0c4774a4b618a76dff328611b by CJ Johnson <johnsoncj@google.com>: Swap the order of the C++11 and C++17 interfaces for absl::Cleanup to mirror the order used in the comment example PiperOrigin-RevId: 354675180 GitOrigin-RevId: 8c77b14bdee3f4cafb8ba520d4d050b15a949fd4 Change-Id: Ia2054b725ed737ff9e557cb3d973de7c34bc51b0
Diffstat (limited to 'absl/cleanup/internal')
-rw-r--r--absl/cleanup/internal/cleanup.h2
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)) {}