Subject: [Boost-bugs] [Boost C++ Libraries] #13204: Warning when compiling with -Wdeprecated-dynamic-exception-spec in clang
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-09-09 23:44:29
#13204: Warning when compiling with -Wdeprecated-dynamic-exception-spec in clang
------------------------------+-------------------------
Reporter: viboes | Owner: Peter Dimov
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.65.0 | Severity: Problem
Keywords: |
------------------------------+-------------------------
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()
^~~~~~~
noexcept
1 error generated.
}}}
I don't know if using instead BOOST_NOEXCEPT_OR_NOTHROW is correct and
should resolve the issue.
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13204> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-09-09 23:50:39 UTC