| Index: base/move.h
|
| diff --git a/base/move.h b/base/move.h
|
| index 06f3f323723f68126542d3db3fed49487cb73bc6..87dc52d16c554cf0588053e3d83a11e99e1375ed 100644
|
| --- a/base/move.h
|
| +++ b/base/move.h
|
| @@ -2,11 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/compiler_specific.h"
|
| -
|
| #ifndef BASE_MOVE_H_
|
| #define BASE_MOVE_H_
|
|
|
| +#include "base/compiler_specific.h"
|
| +
|
| // Macro with the boilerplate that makes a type move-only in C++03.
|
| //
|
| // USAGE
|
| @@ -219,11 +219,16 @@
|
|
|
| #define MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type) \
|
| private: \
|
| - type(type&); \
|
| - void operator=(type&); \
|
| + type(const type&); \
|
| + void operator=(const type&); \
|
| public: \
|
| type&& Pass() WARN_UNUSED_RESULT { return static_cast<type&&>(*this); } \
|
| typedef void MoveOnlyTypeForCPP03; \
|
| private:
|
|
|
| +#define TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type) \
|
| + public: \
|
| + type&& Pass() WARN_UNUSED_RESULT { return static_cast<type&&>(*this); } \
|
| + private:
|
| +
|
| #endif // BASE_MOVE_H_
|
|
|