aboutsummaryrefslogtreecommitdiff
path: root/odb/exception.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
commit13dd928ae18ef9610bc820b7b3e65629addea1d2 (patch)
treed9ee8ef03e3ee5a3be9925de08537b03cf29320b /odb/exception.hxx
parentb33321c4d05c0ac759bf3fcf647a568af8bfca0c (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/exception.hxx')
-rw-r--r--odb/exception.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/exception.hxx b/odb/exception.hxx
index 3a0b809..3ce587b 100644
--- a/odb/exception.hxx
+++ b/odb/exception.hxx
@@ -11,6 +11,7 @@
#include <odb/forward.hxx> // odb::core
+#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT
#include <odb/details/export.hxx>
#include <odb/details/shared-ptr/base.hxx>
@@ -19,7 +20,7 @@ namespace odb
struct LIBODB_EXPORT exception: std::exception, details::shared_base
{
virtual const char*
- what () const throw () = 0;
+ what () const ODB_NOTHROW_NOEXCEPT = 0;
virtual exception*
clone () const = 0;