From 8f278506a9ef4de0f17bdce5b69b212140f94ec0 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/qt/date-time/exceptions.cxx | 2 +- odb/qt/date-time/exceptions.hxx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'odb/qt/date-time') diff --git a/odb/qt/date-time/exceptions.cxx b/odb/qt/date-time/exceptions.cxx index 43cba1f..dfc3efa 100644 --- a/odb/qt/date-time/exceptions.cxx +++ b/odb/qt/date-time/exceptions.cxx @@ -11,7 +11,7 @@ namespace odb namespace date_time { const char* value_out_of_range:: - what () const throw () + what () const ODB_NOTHROW_NOEXCEPT { return "date/time value out of range"; } diff --git a/odb/qt/date-time/exceptions.hxx b/odb/qt/date-time/exceptions.hxx index e231bb6..d7dcb38 100644 --- a/odb/qt/date-time/exceptions.hxx +++ b/odb/qt/date-time/exceptions.hxx @@ -7,6 +7,8 @@ #include +#include // ODB_NOTHROW_NOEXCEPT + #include #include @@ -19,7 +21,7 @@ namespace odb struct LIBODB_QT_EXPORT value_out_of_range: exception { virtual const char* - what () const throw (); + what () const ODB_NOTHROW_NOEXCEPT; virtual value_out_of_range* clone () const; -- cgit v1.1