From 0498579d1cd917bf4fc29266e80fa23687f0a545 Mon Sep 17 00:00:00 2001 From: Hans Fugal Date: Thu, 26 Jun 2014 15:22:55 -0700 Subject: [PATCH] (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 --- folly/wangle/Future-inl.h | 2 +- folly/wangle/Future.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.34.1