aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-03-24 10:05:14 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-03-24 10:05:14 +0200
commitb63a422647fcf9ae291ceb0ad32746d1a239129f (patch)
tree91d5b0eeb6dc0a168cb9a0a9f220fcc42f54884f
parent822cb2a6e65a071adf4d0a1626bdb6b176fa010a (diff)
Implement boost date-time traits as default_value_traits specializations
-rw-r--r--odb/boost/date-time/mysql/gregorian-traits.hxx2
-rw-r--r--odb/boost/date-time/mysql/posix-time-traits.hxx11
2 files changed, 7 insertions, 6 deletions
diff --git a/odb/boost/date-time/mysql/gregorian-traits.hxx b/odb/boost/date-time/mysql/gregorian-traits.hxx
index d907aef..d30dbb8 100644
--- a/odb/boost/date-time/mysql/gregorian-traits.hxx
+++ b/odb/boost/date-time/mysql/gregorian-traits.hxx
@@ -20,7 +20,7 @@ namespace odb
namespace mysql
{
template <>
- class value_traits< ::boost::gregorian::date, MYSQL_TIME, id_date>
+ class default_value_traits< ::boost::gregorian::date, MYSQL_TIME, id_date>
{
public:
typedef ::boost::gregorian::date date;
diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx
index 35f1413..81e7454 100644
--- a/odb/boost/date-time/mysql/posix-time-traits.hxx
+++ b/odb/boost/date-time/mysql/posix-time-traits.hxx
@@ -21,7 +21,8 @@ namespace odb
namespace mysql
{
template <>
- class value_traits< ::boost::posix_time::ptime, MYSQL_TIME, id_datetime>
+ class default_value_traits<
+ ::boost::posix_time::ptime, MYSQL_TIME, id_datetime>
{
public:
typedef ::boost::posix_time::ptime ptime;
@@ -69,7 +70,8 @@ namespace odb
};
template <>
- class value_traits< ::boost::posix_time::ptime, MYSQL_TIME, id_timestamp>
+ class default_value_traits<
+ ::boost::posix_time::ptime, MYSQL_TIME, id_timestamp>
{
public:
typedef ::boost::posix_time::ptime ptime;
@@ -122,9 +124,8 @@ namespace odb
};
template <>
- class value_traits< ::boost::posix_time::time_duration,
- MYSQL_TIME,
- id_time>
+ class default_value_traits<
+ ::boost::posix_time::time_duration, MYSQL_TIME, id_time>
{
public:
typedef ::boost::posix_time::time_duration time_duration;