diff options
author | Andrew Morrow <acm@10gen.com> | 2013-05-17 11:21:44 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2014-04-07 19:05:45 -0400 |
commit | 5f417e02075aa6c5ae80685927cd6fbca4ba6ca2 (patch) | |
tree | 7ee2ad9f778c1a6a326486e9bae28282b3e6aa2f /src/mongo/base/status.h | |
parent | 8784c38f824b9666dd3c68b80cd6069ef2970694 (diff) | |
download | mongo-5f417e02075aa6c5ae80685927cd6fbca4ba6ca2.tar.gz |
SERVER-13470 Give Status move semantics in C++11 mode
Diffstat (limited to 'src/mongo/base/status.h')
-rw-r--r-- | src/mongo/base/status.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/base/status.h b/src/mongo/base/status.h index ad301f8b008..d897705c9e3 100644 --- a/src/mongo/base/status.h +++ b/src/mongo/base/status.h @@ -63,6 +63,11 @@ namespace mongo { inline Status(const Status& other); inline Status& operator=(const Status& other); +#if __cplusplus >= 201103L + inline Status(Status&& other) noexcept; + inline Status& operator=(Status&& other) noexcept; +#endif // __cplusplus >= 201103L + inline ~Status(); /** |