]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove noexcept from function definition 34661/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 21 Apr 2020 11:13:32 +0000 (11:13 +0000)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 21 Apr 2020 11:41:23 +0000 (11:41 +0000)
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 <wjw@digiware.nl>
src/rgw/rgw_bucket_sync_cache.h

index 7d340d327645628d0bd73593d18476aa23ecc9ba..de81d26c9bc31fc446a8429fc70e64371a85d38d 100644 (file)
@@ -84,8 +84,8 @@ class Handle {
   Handle(boost::intrusive_ptr<Cache> cache,
          boost::intrusive_ptr<Entry> 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);