Use boost noexcept in error definition

This commit is contained in:
Zaal Tonia 2019-04-12 11:39:35 -04:00 committed by Pentarctagon
parent 94ad15e5b0
commit 4272b5b34d

View file

@ -48,14 +48,14 @@ struct invalid_pbl_exception : public std::exception
/** Destructor.
* Virtual to allow for subclassing.
*/
virtual ~invalid_pbl_exception() throw (){}
virtual ~invalid_pbl_exception() BOOST_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 throw (){
virtual const char* what() const BOOST_NOEXCEPT (){
return message.c_str();
}
};