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

Unified Diff: sky/engine/wtf/NullPtr.h

Issue 673403002: Remove compiler feature detection for = delete (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Don't remove #define for FINAL Created 6 years, 2 months 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 | « sky/engine/wtf/Noncopyable.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/wtf/NullPtr.h
diff --git a/sky/engine/wtf/NullPtr.h b/sky/engine/wtf/NullPtr.h
index 1aa558498346d66d4ecbaf04b6ec7ce119d9282d..9614104e97603a8abef9c8115c2d162e5e2cce6f 100644
--- a/sky/engine/wtf/NullPtr.h
+++ b/sky/engine/wtf/NullPtr.h
@@ -66,20 +66,11 @@ WTF_EXPORT extern const std::nullptr_t nullptr;
#endif
-#if COMPILER_SUPPORTS(CXX_DELETED_FUNCTIONS)
#define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \
private: \
ClassName(int) = delete
#define WTF_DISALLOW_ZERO_ASSIGNMENT(ClassName) \
private: \
ClassName& operator=(int) = delete
-#else
-#define WTF_DISALLOW_CONSTRUCTION_FROM_ZERO(ClassName) \
- private: \
- ClassName(int)
-#define WTF_DISALLOW_ZERO_ASSIGNMENT(ClassName) \
- private: \
- ClassName& operator=(int)
-#endif
#endif
« no previous file with comments | « sky/engine/wtf/Noncopyable.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698