diff options
author | tzik <tzik@chromium.org> | 2016-03-09 23:17:25 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-10 07:19:09 +0000 |
commit | 403cb6c9b17343999f09df79b82b56e77bd93839 (patch) | |
tree | 4c072eb309fc7e1245e908ce2a8130541e555a42 /google_apis | |
parent | 2df71fea360d6abde88d9c0de8fe084cb95f670e (diff) | |
download | chromium_src-403cb6c9b17343999f09df79b82b56e77bd93839.zip chromium_src-403cb6c9b17343999f09df79b82b56e77bd93839.tar.gz chromium_src-403cb6c9b17343999f09df79b82b56e77bd93839.tar.bz2 |
Replace template_util.h stuff with C++11 <type_traits>
BUG=554293
Review URL: https://codereview.chromium.org/1774443002
Cr-Commit-Position: refs/heads/master@{#380369}
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/drive/test_util.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/google_apis/drive/test_util.h b/google_apis/drive/test_util.h index f3fbf8d..96cf511 100644 --- a/google_apis/drive/test_util.h +++ b/google_apis/drive/test_util.h @@ -17,7 +17,6 @@ #include "base/macros.h" #include "base/memory/scoped_ptr.h" #include "base/memory/scoped_vector.h" -#include "base/template_util.h" #include "google_apis/drive/base_requests.h" #include "google_apis/drive/drive_api_error_codes.h" #include "google_apis/drive/task_util.h" @@ -137,9 +136,9 @@ namespace internal { // Declare if the type is movable or not. Currently limited to scoped_ptr only. // We can add more types upon the usage. -template<typename T> struct IsMovable : base::false_type {}; +template<typename T> struct IsMovable : std::false_type {}; template<typename T, typename D> -struct IsMovable<scoped_ptr<T, D> > : base::true_type {}; +struct IsMovable<scoped_ptr<T, D> > : std::true_type {}; // InType is const T& if |UseConstRef| is true, otherwise |T|. template<bool UseConstRef, typename T> struct InTypeHelper { @@ -169,7 +168,7 @@ struct CopyResultCallbackHelper // |InType| is const T&. // 2) Otherwise, |T| as is. : InTypeHelper< - base::is_class<T>::value && !IsMovable<T>::value, // UseConstRef + std::is_class<T>::value && !IsMovable<T>::value, // UseConstRef T>, MoveHelper<IsMovable<T>::value, T> { }; |