Opened 13 months ago

#13204 new Bugs

Warning when compiling with -Wdeprecated-dynamic-exception-spec in clang

Reported by: viboes Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.65.0 Severity: Problem
Keywords: Cc:


When compiling with -Wdeprecated-dynamic-exception-spec in clang we get the following warning

/xxx/modular-boost3/boost/smart_ptr/bad_weak_ptr.hpp:50:39: error: dynamic exception specifications are deprecated [-Werror,-Wdeprecated-dynamic-exception-spec]
    virtual char const * what() const throw()
/Users/viboes/github/modular-boost3/boost/smart_ptr/bad_weak_ptr.hpp:50:39: note: use 'noexcept' instead
    virtual char const * what() const throw()
1 error generated.

I don't know if using instead BOOST_NOEXCEPT_OR_NOTHROW is correct and should resolve the issue.

Change History (0)

Note: See TracTickets for help on using tickets.