aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/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
commitd1fb1f85fcf47219c6297cf734a9e8682068a577 (patch)
treedd012afe7023a56dd8df36949f47aa35bd718a88 /odb/oracle/exceptions.hxx
parent2a7fddcc8b90a3e89db7561a52ac12d896dd2b5f (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/oracle/exceptions.hxx')
-rw-r--r--odb/oracle/exceptions.hxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/odb/oracle/exceptions.hxx b/odb/oracle/exceptions.hxx
index 58f4efb..8258bae 100644
--- a/odb/oracle/exceptions.hxx
+++ b/odb/oracle/exceptions.hxx
@@ -11,6 +11,7 @@
#include <vector>
#include <odb/exceptions.hxx>
+#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT
#include <odb/oracle/version.hxx>
#include <odb/oracle/forward.hxx>
@@ -68,13 +69,13 @@ namespace odb
}
public:
- ~database_exception () throw ();
+ ~database_exception () ODB_NOTHROW_NOEXCEPT;
database_exception ();
database_exception (sb4 error, const std::string& message);
virtual const char*
- what () const throw ();
+ what () const ODB_NOTHROW_NOEXCEPT;
virtual database_exception*
clone () const;
@@ -90,7 +91,7 @@ namespace odb
struct LIBODB_ORACLE_EXPORT lob_comparison: odb::exception
{
virtual const char*
- what () const throw ();
+ what () const ODB_NOTHROW_NOEXCEPT;
virtual lob_comparison*
clone () const;
@@ -99,10 +100,10 @@ namespace odb
struct LIBODB_ORACLE_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;
@@ -114,7 +115,7 @@ namespace odb
struct LIBODB_ORACLE_EXPORT invalid_oci_handle: odb::exception
{
virtual const char*
- what () const throw ();
+ what () const ODB_NOTHROW_NOEXCEPT;
virtual invalid_oci_handle*
clone () const;