diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-15 18:50:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-15 18:50:51 +0200 |
commit | 3653a5cd92167a4998fb8bb975b9e60c4db139d7 (patch) | |
tree | 6a2cacbda6f9287a6816c95ac19fe65bcfd2d058 /odb/mysql/exceptions.hxx | |
parent | b4ef3b4e015e6730d283cb9e7dd3f8d7ca204904 (diff) |
Get rid of C++11 deprecation warnings for auto_ptr, exception specs
In particular, std::auto_ptr is no longer mapped in C++11.
Diffstat (limited to 'odb/mysql/exceptions.hxx')
-rw-r--r-- | odb/mysql/exceptions.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/odb/mysql/exceptions.hxx b/odb/mysql/exceptions.hxx index e88fae8..35329a8 100644 --- a/odb/mysql/exceptions.hxx +++ b/odb/mysql/exceptions.hxx @@ -10,6 +10,7 @@ #include <string> #include <odb/exceptions.hxx> +#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT #include <odb/mysql/version.hxx> #include <odb/mysql/forward.hxx> @@ -26,7 +27,7 @@ namespace odb const std::string& sqlstate, const std::string& message); - ~database_exception () throw (); + ~database_exception () ODB_NOTHROW_NOEXCEPT; unsigned int error () const @@ -47,7 +48,7 @@ namespace odb } virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual database_exception* clone () const; @@ -62,10 +63,10 @@ namespace odb struct LIBODB_MYSQL_EXPORT cli_exception: odb::exception { cli_exception (const std::string& what); - ~cli_exception () throw (); + ~cli_exception () ODB_NOTHROW_NOEXCEPT; virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual cli_exception* clone () const; |