aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/boost/date-time/exceptions.cxx4
-rw-r--r--odb/boost/date-time/exceptions.hxx6
-rw-r--r--odb/boost/exception.hxx3
3 files changed, 8 insertions, 5 deletions
diff --git a/odb/boost/date-time/exceptions.cxx b/odb/boost/date-time/exceptions.cxx
index cd868bc..1fe0dbd 100644
--- a/odb/boost/date-time/exceptions.cxx
+++ b/odb/boost/date-time/exceptions.cxx
@@ -11,7 +11,7 @@ namespace odb
namespace date_time
{
const char* special_value::
- what () const throw ()
+ what () const ODB_NOTHROW_NOEXCEPT
{
return "unrepresentable date/time special value";
}
@@ -23,7 +23,7 @@ namespace odb
}
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/boost/date-time/exceptions.hxx b/odb/boost/date-time/exceptions.hxx
index b180579..2e3b408 100644
--- a/odb/boost/date-time/exceptions.hxx
+++ b/odb/boost/date-time/exceptions.hxx
@@ -7,6 +7,8 @@
#include <odb/pre.hxx>
+#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT
+
#include <odb/boost/exception.hxx>
#include <odb/boost/details/export.hxx>
@@ -19,7 +21,7 @@ namespace odb
struct LIBODB_BOOST_EXPORT special_value: exception
{
virtual const char*
- what () const throw ();
+ what () const ODB_NOTHROW_NOEXCEPT;
virtual special_value*
clone () const;
@@ -28,7 +30,7 @@ namespace odb
struct LIBODB_BOOST_EXPORT value_out_of_range: exception
{
virtual const char*
- what () const throw ();
+ what () const ODB_NOTHROW_NOEXCEPT;
virtual value_out_of_range*
clone () const;
diff --git a/odb/boost/exception.hxx b/odb/boost/exception.hxx
index 3cfb4a8..fa7dcec 100644
--- a/odb/boost/exception.hxx
+++ b/odb/boost/exception.hxx
@@ -9,6 +9,7 @@
#include <odb/exceptions.hxx>
+#include <odb/details/config.hxx> // ODB_NOTHROW_NOEXCEPT
#include <odb/boost/details/export.hxx>
namespace odb
@@ -18,7 +19,7 @@ namespace odb
struct LIBODB_BOOST_EXPORT exception: odb::exception
{
virtual const char*
- what () const throw () = 0;
+ what () const ODB_NOTHROW_NOEXCEPT = 0;
};
}
}