(wangle) noexcept move constructor
authorHans Fugal <fugalh@fb.com>
Thu, 26 Jun 2014 22:22:55 +0000 (15:22 -0700)
committerNicholas Ormrod <njormrod@fb.com>
Fri, 27 Jun 2014 22:06:46 +0000 (15:06 -0700)
Summary: to make lint happy

Test Plan: builds

Reviewed By: hannesr@fb.com

Subscribers: net-systems@, fugalh, exa

FB internal diff: D1406766

Tasks: 4480567

folly/wangle/Future-inl.h
folly/wangle/Future.h

index cc6b6bf06f91ef0da00a71b92ea3fcd6e7080a5e..97be14c416604c62a720866bc77d06ff1de5052a 100644 (file)
@@ -32,7 +32,7 @@ struct isFuture<Future<T> > {
 };
 
 template <class T>
-Future<T>::Future(Future<T>&& other) : obj_(other.obj_) {
+Future<T>::Future(Future<T>&& other) noexcept : obj_(other.obj_) {
   other.obj_ = nullptr;
 }
 
index b54b7c19f65e71fb60edfdcb7da84397fa32c9dd..b0c32081253b06622df8d0ad0efe9e726dca8dfc 100644 (file)
@@ -41,7 +41,7 @@ class Future {
   Future& operator=(Future const&) = delete;
 
   // movable
-  Future(Future&&);
+  Future(Future&&) noexcept;
   Future& operator=(Future&&);
 
   ~Future();