Use boost noexcept in error definition
This commit is contained in:
parent
94ad15e5b0
commit
4272b5b34d
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue