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:
@ -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>
|
||||
|
Reference in New Issue
Block a user