0

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
This commit is contained in:
ncbray@chromium.org
2014-08-01 22:44:13 +00:00
parent 933582dce0
commit e160b44f3f
2 changed files with 3 additions and 3 deletions
base
mojo/public/cpp/bindings/lib

@ -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>

@ -64,7 +64,7 @@ T FetchAndReset(T* ptr) {
}
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>