diff options
Diffstat (limited to 'odb/details/win32')
-rw-r--r-- | odb/details/win32/exceptions.cxx | 2 | ||||
-rw-r--r-- | odb/details/win32/exceptions.hxx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/odb/details/win32/exceptions.cxx b/odb/details/win32/exceptions.cxx index 0e52348..1067a28 100644 --- a/odb/details/win32/exceptions.cxx +++ b/odb/details/win32/exceptions.cxx @@ -9,7 +9,7 @@ namespace odb namespace details { const char* win32_exception:: - what () const throw () + what () const ODB_NOTHROW_NOEXCEPT { return "Win32 API error"; } diff --git a/odb/details/win32/exceptions.hxx b/odb/details/win32/exceptions.hxx index 7303bb7..1f8a4b2 100644 --- a/odb/details/win32/exceptions.hxx +++ b/odb/details/win32/exceptions.hxx @@ -7,9 +7,10 @@ #include <odb/pre.hxx> -#include <odb/details/win32/windows.hxx> +#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT #include <odb/details/export.hxx> #include <odb/details/exception.hxx> +#include <odb/details/win32/windows.hxx> namespace odb { @@ -24,7 +25,7 @@ namespace odb code () const {return code_;} virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual win32_exception* clone () const; |