From 5f0d5fcf465c795c6a94fff3578a373f9daf4b24 Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Tue, 21 Apr 2020 11:13:32 +0000 Subject: [PATCH] rgw: remove noexcept from function definition Clang complains: src/rgw/rgw_bucket_sync_cache.h:88:3: error: exception specification of explicitly defaulted copy co nstructor does not match the calculated one Handle(const Handle&) noexcept = default; ^ 1 error generated. And a reference that I found for this: https://github.com/mapnik/mapnik/issues/3274 Suggesting that the noexcept is inherited from the first definition. Signed-off-by: Willem Jan Withagen --- src/rgw/rgw_bucket_sync_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_bucket_sync_cache.h b/src/rgw/rgw_bucket_sync_cache.h index 7d340d3276456..de81d26c9bc31 100644 --- a/src/rgw/rgw_bucket_sync_cache.h +++ b/src/rgw/rgw_bucket_sync_cache.h @@ -84,8 +84,8 @@ class Handle { Handle(boost::intrusive_ptr cache, boost::intrusive_ptr entry) noexcept : cache(std::move(cache)), entry(std::move(entry)) {} - Handle(Handle&&) noexcept = default; - Handle(const Handle&) noexcept = default; + Handle(Handle&&) = default; + Handle(const Handle&) = default; Handle& operator=(Handle&& o) noexcept { // move the entry first so that its cache stays referenced over destruction entry = std::move(o.entry); -- 2.39.5