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>
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);