Skip to content

Commit

Permalink
Use boost noexcept in error definition
Browse files Browse the repository at this point in the history
  • Loading branch information
drzaal authored and Pentarctagon committed Apr 24, 2019
1 parent 1eb00aa commit 389d64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/addon/manager.hpp
Expand Up @@ -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();
}
};
Expand Down

0 comments on commit 389d64b

Please sign in to comment.