Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: base/move.h

Issue 1477643002: Remove the TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basepass
Patch Set: type-with-move: no-media Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_MOVE_H_ 5 #ifndef BASE_MOVE_H_
6 #define BASE_MOVE_H_ 6 #define BASE_MOVE_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 private: \ 56 private: \
57 type(const type&) = delete; \ 57 type(const type&) = delete; \
58 void operator=(const type&) = delete; \ 58 void operator=(const type&) = delete; \
59 \ 59 \
60 public: \ 60 public: \
61 type&& Pass() WARN_UNUSED_RESULT { return std::move(*this); } \ 61 type&& Pass() WARN_UNUSED_RESULT { return std::move(*this); } \
62 typedef void MoveOnlyTypeForCPP03; \ 62 typedef void MoveOnlyTypeForCPP03; \
63 \ 63 \
64 private: 64 private:
65 65
66 #define TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type) \
67 public: \
68 type&& Pass() WARN_UNUSED_RESULT { return std::move(*this); } \
69 private:
70
71 #endif // BASE_MOVE_H_ 66 #endif // BASE_MOVE_H_
OLDNEW
« no previous file with comments | « base/memory/ref_counted.h ('k') | chrome/browser/chromeos/platform_keys/platform_keys_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698