diff options
Diffstat (limited to 'odb/details/posix')
-rw-r--r-- | odb/details/posix/exceptions.cxx | 2 | ||||
-rw-r--r-- | odb/details/posix/exceptions.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/odb/details/posix/exceptions.cxx b/odb/details/posix/exceptions.cxx index 0ed0aa3..ecffa4f 100644 --- a/odb/details/posix/exceptions.cxx +++ b/odb/details/posix/exceptions.cxx @@ -9,7 +9,7 @@ namespace odb namespace details { const char* posix_exception:: - what () const throw () + what () const ODB_NOTHROW_NOEXCEPT { return "POSIX API error"; } diff --git a/odb/details/posix/exceptions.hxx b/odb/details/posix/exceptions.hxx index dd78313..7a40ac6 100644 --- a/odb/details/posix/exceptions.hxx +++ b/odb/details/posix/exceptions.hxx @@ -7,6 +7,7 @@ #include <odb/pre.hxx> +#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT #include <odb/details/export.hxx> #include <odb/details/exception.hxx> @@ -22,7 +23,7 @@ namespace odb code () const {return code_;} virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual posix_exception* clone () const; |