summaryrefslogtreecommitdiff
path: root/chromium/base/move.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/move.h')
-rw-r--r--chromium/base/move.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/chromium/base/move.h b/chromium/base/move.h
index 06f3f323723..87dc52d16c5 100644
--- a/chromium/base/move.h
+++ b/chromium/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_