From: Hans Fugal Date: Thu, 26 Jun 2014 22:22:55 +0000 (-0700) Subject: (wangle) noexcept move constructor X-Git-Tag: v0.22.0~493 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0498579d1cd917bf4fc29266e80fa23687f0a545;p=folly.git (wangle) noexcept move constructor Summary: to make lint happy Test Plan: builds Reviewed By: hannesr@fb.com Subscribers: net-systems@, fugalh, exa FB internal diff: D1406766 Tasks: 4480567 --- diff --git a/folly/wangle/Future-inl.h b/folly/wangle/Future-inl.h index cc6b6bf0..97be14c4 100644 --- a/folly/wangle/Future-inl.h +++ b/folly/wangle/Future-inl.h @@ -32,7 +32,7 @@ struct isFuture > { }; template -Future::Future(Future&& other) : obj_(other.obj_) { +Future::Future(Future&& other) noexcept : obj_(other.obj_) { other.obj_ = nullptr; } diff --git a/folly/wangle/Future.h b/folly/wangle/Future.h index b54b7c19..b0c32081 100644 --- a/folly/wangle/Future.h +++ b/folly/wangle/Future.h @@ -41,7 +41,7 @@ class Future { Future& operator=(Future const&) = delete; // movable - Future(Future&&); + Future(Future&&) noexcept; Future& operator=(Future&&); ~Future();