Use base noexcept
This commit is contained in:
parent
ac26520bfa
commit
2aaaca175c
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue