From 5dca512d7f1d60c5a1d73b92601bc134a30ff6b8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Jun 2016 18:50:51 +0200 Subject: Get rid of C++11 deprecation warnings for auto_ptr, exception specs In particular, std::auto_ptr is no longer mapped in C++11. --- odb/mssql/exceptions.hxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'odb/mssql/exceptions.hxx') diff --git a/odb/mssql/exceptions.hxx b/odb/mssql/exceptions.hxx index b53e08e..6b26037 100644 --- a/odb/mssql/exceptions.hxx +++ b/odb/mssql/exceptions.hxx @@ -11,6 +11,7 @@ #include #include +#include // ODB_NOTHROW_NOEXCEPT #include #include @@ -77,13 +78,13 @@ namespace odb } virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual database_exception* clone () const; public: - ~database_exception () throw (); + ~database_exception () ODB_NOTHROW_NOEXCEPT; database_exception (); database_exception (SQLINTEGER error, @@ -103,10 +104,10 @@ namespace odb struct LIBODB_MSSQL_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; @@ -118,7 +119,7 @@ namespace odb struct LIBODB_MSSQL_EXPORT long_data_reload: odb::exception { virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual long_data_reload* clone () const; -- cgit v1.1