2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

Prepare for C++20 and remove "throw()" usage.

This commit is contained in:
Romain Geissler
2018-11-11 22:19:23 +00:00
parent ff6a8e4e13
commit 5e10e84031
9 changed files with 23 additions and 20 deletions

View File

@@ -12,6 +12,7 @@
#include <string>
#include <sstream>
#include <boost/config.hpp>
#include <boost/spirit/home/support/info.hpp>
#include <boost/spirit/include/support_line_pos_iterator.hpp>
@@ -74,9 +75,9 @@ struct expected_component : std::exception
msg = oss.str();
}
virtual ~expected_component() throw() {}
virtual ~expected_component() BOOST_NOEXCEPT_OR_NOTHROW {}
virtual char const* what() const throw()
virtual char const* what() const BOOST_NOEXCEPT_OR_NOTHROW
{
return msg.c_str();
}