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

Unified Diff: base/bit_cast.h

Issue 1866473002: Define HAS_FEATURE instead of __has_feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep Mac as-is. Created 4 years, 8 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 | « no previous file | base/compiler_specific.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bit_cast.h
diff --git a/base/bit_cast.h b/base/bit_cast.h
index ad38238beb5c08902691dc3a9c8a67784714595c..a4830a62e92ac0797397bbb4e564a5ac0e11d09c 100644
--- a/base/bit_cast.h
+++ b/base/bit_cast.h
@@ -72,7 +72,7 @@ inline Dest bit_cast(const Source& source) {
"non-trivially-copyable bit_cast is undefined");
static_assert(std::is_trivially_copyable<Source>::value,
"non-trivially-copyable bit_cast is undefined");
-#elif __has_feature(is_trivially_copyable)
+#elif HAS_FEATURE(is_trivially_copyable)
// The compiler supports an equivalent intrinsic.
static_assert(__is_trivially_copyable(Dest),
"non-trivially-copyable bit_cast is undefined");
« no previous file with comments | « no previous file | base/compiler_specific.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698