| Index: base/callback_internal.h
|
| diff --git a/base/callback_internal.h b/base/callback_internal.h
|
| index e4e538ff15c2d0dfe239bc5d8b17fe411c59926e..227a041dbe965b75a72c67bfe8584da0086ce217 100644
|
| --- a/base/callback_internal.h
|
| +++ b/base/callback_internal.h
|
| @@ -11,6 +11,7 @@
|
| #include <stddef.h>
|
| #include <memory>
|
| #include <type_traits>
|
| +#include <vector>
|
|
|
| #include "base/atomic_ref_count.h"
|
| #include "base/base_export.h"
|
| @@ -118,6 +119,12 @@ template <typename T> struct IsMoveOnlyType {
|
| template <typename T, typename D>
|
| struct IsMoveOnlyType<std::unique_ptr<T, D>> : std::true_type {};
|
|
|
| +// Specialization of std::vector, so that it's considered move-only if the
|
| +// element type is move-only. Allocator is explicitly ignored when determining
|
| +// move-only status of the std::vector.
|
| +template <typename T, typename Allocator>
|
| +struct IsMoveOnlyType<std::vector<T, Allocator>> : IsMoveOnlyType<T> {};
|
| +
|
| template <typename>
|
| struct CallbackParamTraitsForMoveOnlyType;
|
|
|
|
|