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

Unified Diff: base/template_util_unittest.cc

Issue 2797793002: Remove base::underlying_type, replace uses with std::underlying_type (Closed)
Patch Set: underlyingtype: rm-tests Created 3 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 | « base/template_util.h ('k') | components/ntp_snippets/content_suggestions_metrics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/template_util_unittest.cc
diff --git a/base/template_util_unittest.cc b/base/template_util_unittest.cc
index e34a25b0428b4f8ef9e9d001978116aa5adb3cdb..1c027428dd6d1f011d76b2f56f25634be0365b18 100644
--- a/base/template_util_unittest.cc
+++ b/base/template_util_unittest.cc
@@ -69,15 +69,6 @@ static_assert(
internal::SupportsOstreamOperator<const StructWithOperator&>::value,
"struct with operator<< should be printable by const ref");
-// underlying type of enums
-static_assert(std::is_integral<underlying_type<SimpleEnum>::type>::value,
- "simple enum must have some integral type");
-static_assert(
- std::is_same<underlying_type<EnumWithExplicitType>::type, uint64_t>::value,
- "explicit type must be detected");
-static_assert(std::is_same<underlying_type<ScopedEnum>::type, int>::value,
- "scoped enum defaults to int");
-
struct TriviallyDestructible {
int field;
};
« no previous file with comments | « base/template_util.h ('k') | components/ntp_snippets/content_suggestions_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698