aboutsummaryrefslogtreecommitdiff
path: root/odb/boost/date-time
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-14 16:24:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-25 06:41:46 +0200
commit3990f7c5997aa6a36b54fcb286fb9dc97f658edc (patch)
tree3ef255185a2f103184583adaaca589a76d0aac14 /odb/boost/date-time
parent28920335fe1b5b7758917c0ed7a6f72e6614c376 (diff)
Implement bulk database operation support for Oracle and SQL Server
Diffstat (limited to 'odb/boost/date-time')
-rw-r--r--odb/boost/date-time/exceptions.cxx12
-rw-r--r--odb/boost/date-time/exceptions.hxx6
2 files changed, 18 insertions, 0 deletions
diff --git a/odb/boost/date-time/exceptions.cxx b/odb/boost/date-time/exceptions.cxx
index 7acbd84..554a9a8 100644
--- a/odb/boost/date-time/exceptions.cxx
+++ b/odb/boost/date-time/exceptions.cxx
@@ -16,11 +16,23 @@ namespace odb
return "unrepresentable date/time special value";
}
+ special_value* special_value::
+ clone () const
+ {
+ return new special_value (*this);
+ }
+
const char* value_out_of_range::
what () const throw ()
{
return "date/time value out of range";
}
+
+ value_out_of_range* value_out_of_range::
+ clone () const
+ {
+ return new value_out_of_range (*this);
+ }
}
}
}
diff --git a/odb/boost/date-time/exceptions.hxx b/odb/boost/date-time/exceptions.hxx
index 6022106..731c06e 100644
--- a/odb/boost/date-time/exceptions.hxx
+++ b/odb/boost/date-time/exceptions.hxx
@@ -20,12 +20,18 @@ namespace odb
{
virtual const char*
what () const throw ();
+
+ virtual special_value*
+ clone () const;
};
struct LIBODB_BOOST_EXPORT value_out_of_range: exception
{
virtual const char*
what () const throw ();
+
+ virtual value_out_of_range*
+ clone () const;
};
}
}