Index: base/bind_helpers.h |
diff --git a/base/bind_helpers.h b/base/bind_helpers.h |
index 660348e667c102b526b13a1d46a6c720cf30b293..a551465ce8148430a7a62747cd909db8f5ecd284 100644 |
--- a/base/bind_helpers.h |
+++ b/base/bind_helpers.h |
@@ -563,15 +563,12 @@ static inline internal::OwnedWrapper<T> Owned(T* o) { |
// Both versions of Passed() prevent T from being an lvalue reference. The first |
// via use of enable_if, and the second takes a T* which will not bind to T&. |
template <typename T, |
- typename std::enable_if<internal::IsMoveOnlyType<T>::value && |
- !std::is_lvalue_reference<T>::value>::type* = |
+ typename std::enable_if<!std::is_lvalue_reference<T>::value>::type* = |
dcheng
2016/03/02 00:25:45
Is it worth trying to catch that the type is movab
tzik
2016/03/02 01:04:21
I think there's no good way to detect the type is
dcheng
2016/03/02 08:06:51
FWIW, I don't think it's that hard to end up with
tzik
2016/03/02 12:44:51
Ah sorry, I told something incorrect.
I meant, it'
|
nullptr> |
static inline internal::PassedWrapper<T> Passed(T&& scoper) { |
return internal::PassedWrapper<T>(std::move(scoper)); |
} |
-template <typename T, |
- typename std::enable_if<internal::IsMoveOnlyType<T>::value>::type* = |
- nullptr> |
+template <typename T> |
static inline internal::PassedWrapper<T> Passed(T* scoper) { |
return internal::PassedWrapper<T>(std::move(*scoper)); |
} |