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

Unified Diff: base/bind_helpers.h

Issue 431533003: Fix template bugs that prevent rolling gtest DEPS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enum Created 6 years, 5 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 | mojo/public/cpp/bindings/lib/bindings_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/bind_helpers.h
diff --git a/base/bind_helpers.h b/base/bind_helpers.h
index e31ef05ff1a78cf41353b110d18a93984d8fdfd4..f3efc31953c78b349bf1b7e2d23c802129f54ac9 100644
--- a/base/bind_helpers.h
+++ b/base/bind_helpers.h
@@ -251,7 +251,7 @@ class SupportsAddRefAndRelease {
static Yes& Check(...);
public:
- static const bool value = sizeof(Check<Base>(0)) == sizeof(Yes);
+ enum { value = sizeof(Check<Base>(0)) == sizeof(Yes) };
};
// Helpers to assert that arguments of a recounted type are bound with a
@@ -286,7 +286,7 @@ class HasIsMethodTag {
static No& Check(...);
public:
- static const bool value = sizeof(Check<T>(0)) == sizeof(Yes);
+ enum { value = sizeof(Check<T>(0)) == sizeof(Yes) };
};
template <typename T>
« no previous file with comments | « no previous file | mojo/public/cpp/bindings/lib/bindings_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698