Skip to content

Commit 8e09414

Browse files
committed
Satisfy derived class compatibility
Derived class must not use throw specifiers looser than the base class (including default), and in C++03 std::runtime_error has explicit 'throw()' (empty) specifier for the destructor.
1 parent 7f6cf43 commit 8e09414

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/netlicensing/exception.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class RestException : public std::runtime_error {
4040
public:
4141
RestException(const std::list<Info>& details, int code) :
4242
std::runtime_error("REST error"), code_(code), details_(details) {}
43+
44+
virtual ~RestException() throw() {}
4345

4446
int http_code() const {
4547
return code_;

0 commit comments

Comments
 (0)