Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1037)

Unified Diff: base/callback_internal.h

Issue 2581943005: Explicitly delete some Callback constructors to improve errors.
Patch Set: include clang-cl but exclude msvc Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/callback.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback_internal.h
diff --git a/base/callback_internal.h b/base/callback_internal.h
index f7501f96c5d737f0a0be70590743c45e6b05329a..0b70750726ca5247ed07b7ce993659e78ef18518 100644
--- a/base/callback_internal.h
+++ b/base/callback_internal.h
@@ -79,6 +79,9 @@ class BASE_EXPORT CallbackBase<CopyMode::MoveOnly> {
CallbackBase(CallbackBase&& c);
CallbackBase& operator=(CallbackBase&& c);
+ CallbackBase(const CallbackBase&) = delete;
+ CallbackBase& operator=(const CallbackBase&) = delete;
+
explicit CallbackBase(const CallbackBase<CopyMode::Copyable>& c);
CallbackBase& operator=(const CallbackBase<CopyMode::Copyable>& c);
« no previous file with comments | « base/callback.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698