Use base noexcept

This commit is contained in:
Zaal Tonia 2019-04-12 22:08:54 -04:00 committed by Pentarctagon
parent 27ac0158a6
commit a7f79000cf

View file

@ -23,7 +23,6 @@ class version_info;
#include <string>
#include <vector>
#include <utility>
#include <boost/throw_exception.hpp>
/**
* Exception thrown when the WML parser fails to read a .pbl file.
@ -49,14 +48,14 @@ struct invalid_pbl_exception : public std::exception
/** Destructor.
* Virtual to allow for subclassing.
*/
virtual ~invalid_pbl_exception() BOOST_NOEXCEPT {}
virtual ~invalid_pbl_exception() noexcept {}
/** Returns a pointer to the (constant) error description.
* @return A pointer to a const char*. The underlying memory
* is in posession of the Exception object. Callers must
* not attempt to free the memory.
*/
virtual const char* what() const BOOST_NOEXCEPT {
virtual const char* what() const noexcept {
return message.c_str();
}
};