aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-15 18:50:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-15 18:50:51 +0200
commit5dca512d7f1d60c5a1d73b92601bc134a30ff6b8 (patch)
treea6f4e656615ad8b7c60ca824f414a47077adc8c3 /odb/mssql/exceptions.hxx
parent3740aa19bc7b426ae89d583362cd32b152ff782f (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/mssql/exceptions.hxx')
-rw-r--r--odb/mssql/exceptions.hxx11
1 files changed, 6 insertions, 5 deletions
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 <vector>
#include <odb/exceptions.hxx>
+#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT
#include <odb/mssql/version.hxx>
#include <odb/mssql/forward.hxx>
@@ -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;