Commit e160b44f authored by ncbray@chromium.org's avatar ncbray@chromium.org

Fix template bugs that prevent rolling gtest DEPS.

BUG=none

Review URL: https://codereview.chromium.org/431533003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287111 0039d316-1c4b-4281-b951-d872f2087c98
parent 933582dc
...@@ -251,7 +251,7 @@ class SupportsAddRefAndRelease { ...@@ -251,7 +251,7 @@ class SupportsAddRefAndRelease {
static Yes& Check(...); static Yes& Check(...);
public: 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 // Helpers to assert that arguments of a recounted type are bound with a
...@@ -286,7 +286,7 @@ class HasIsMethodTag { ...@@ -286,7 +286,7 @@ class HasIsMethodTag {
static No& Check(...); static No& Check(...);
public: public:
static const bool value = sizeof(Check<T>(0)) == sizeof(Yes); enum { value = sizeof(Check<T>(0)) == sizeof(Yes) };
}; };
template <typename T> template <typename T>
......
...@@ -64,7 +64,7 @@ T FetchAndReset(T* ptr) { ...@@ -64,7 +64,7 @@ T FetchAndReset(T* ptr) {
} }
template <typename H> struct IsHandle { template <typename H> struct IsHandle {
static const bool value = IsBaseOf<Handle, H>::value; enum { value = IsBaseOf<Handle, H>::value };
}; };
template <typename T, bool move_only = IsMoveOnlyType<T>::value> template <typename T, bool move_only = IsMoveOnlyType<T>::value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment