aboutsummaryrefslogtreecommitdiff
path: root/odb/boost/date-time
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-26 15:22:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-26 15:22:47 +0200
commit3772c27bfa99dc3c0a09e78918d47dd2cd27c85c (patch)
tree1a3bfa6d8bb1c9f46f5e32621f7b1d3490406b7b /odb/boost/date-time
parentaa70c6c3e9f7be699ddbf44abcad87714675b851 (diff)
Use struct instead of class in specialization
Diffstat (limited to 'odb/boost/date-time')
-rw-r--r--odb/boost/date-time/mysql/gregorian-traits.hxx5
-rw-r--r--odb/boost/date-time/mysql/posix-time-traits.hxx13
-rw-r--r--odb/boost/date-time/sqlite/gregorian-traits.hxx8
-rw-r--r--odb/boost/date-time/sqlite/posix-time-traits.hxx16
4 files changed, 16 insertions, 26 deletions
diff --git a/odb/boost/date-time/mysql/gregorian-traits.hxx b/odb/boost/date-time/mysql/gregorian-traits.hxx
index 2df2483..eeb512c 100644
--- a/odb/boost/date-time/mysql/gregorian-traits.hxx
+++ b/odb/boost/date-time/mysql/gregorian-traits.hxx
@@ -20,9 +20,8 @@ namespace odb
namespace mysql
{
template <>
- class default_value_traits< ::boost::gregorian::date, id_date>
+ struct default_value_traits< ::boost::gregorian::date, id_date>
{
- public:
typedef ::boost::gregorian::date date;
typedef date value_type;
typedef date query_type;
@@ -58,7 +57,7 @@ namespace odb
};
template <>
- class default_type_traits< ::boost::gregorian::date>
+ struct default_type_traits< ::boost::gregorian::date>
{
static const database_type_id db_type_id = id_date;
};
diff --git a/odb/boost/date-time/mysql/posix-time-traits.hxx b/odb/boost/date-time/mysql/posix-time-traits.hxx
index 916be76..515ef77 100644
--- a/odb/boost/date-time/mysql/posix-time-traits.hxx
+++ b/odb/boost/date-time/mysql/posix-time-traits.hxx
@@ -21,9 +21,8 @@ namespace odb
namespace mysql
{
template <>
- class default_value_traits< ::boost::posix_time::ptime, id_datetime>
+ struct default_value_traits< ::boost::posix_time::ptime, id_datetime>
{
- public:
typedef ::boost::posix_time::ptime ptime;
typedef ::boost::posix_time::time_duration time_duration;
typedef ::boost::gregorian::date date;
@@ -69,9 +68,8 @@ namespace odb
};
template <>
- class default_value_traits< ::boost::posix_time::ptime, id_timestamp>
+ struct default_value_traits< ::boost::posix_time::ptime, id_timestamp>
{
- public:
typedef ::boost::posix_time::ptime ptime;
typedef ::boost::posix_time::time_duration time_duration;
typedef ::boost::gregorian::date date;
@@ -122,9 +120,8 @@ namespace odb
};
template <>
- class default_value_traits< ::boost::posix_time::time_duration, id_time>
+ struct default_value_traits< ::boost::posix_time::time_duration, id_time>
{
- public:
typedef ::boost::posix_time::time_duration time_duration;
typedef time_duration value_type;
typedef time_duration query_type;
@@ -171,13 +168,13 @@ namespace odb
};
template <>
- class default_type_traits< ::boost::posix_time::ptime>
+ struct default_type_traits< ::boost::posix_time::ptime>
{
static const database_type_id db_type_id = id_datetime;
};
template <>
- class default_type_traits< ::boost::posix_time::time_duration>
+ struct default_type_traits< ::boost::posix_time::time_duration>
{
static const database_type_id db_type_id = id_time;
};
diff --git a/odb/boost/date-time/sqlite/gregorian-traits.hxx b/odb/boost/date-time/sqlite/gregorian-traits.hxx
index b7e5f39..b50c8f0 100644
--- a/odb/boost/date-time/sqlite/gregorian-traits.hxx
+++ b/odb/boost/date-time/sqlite/gregorian-traits.hxx
@@ -30,9 +30,8 @@ namespace odb
namespace sqlite
{
template <>
- class default_value_traits< ::boost::gregorian::date, id_text>
+ struct default_value_traits< ::boost::gregorian::date, id_text>
{
- public:
typedef ::boost::gregorian::date date;
typedef date value_type;
typedef date query_type;
@@ -82,9 +81,8 @@ namespace odb
};
template <>
- class default_value_traits< ::boost::gregorian::date, id_integer>
+ struct default_value_traits< ::boost::gregorian::date, id_integer>
{
- public:
typedef ::boost::gregorian::date date;
typedef ::boost::posix_time::time_duration time_duration;
typedef ::boost::posix_time::ptime ptime;
@@ -125,7 +123,7 @@ namespace odb
};
template <>
- class default_type_traits< ::boost::gregorian::date>
+ struct default_type_traits< ::boost::gregorian::date>
{
static const database_type_id db_type_id = id_text;
};
diff --git a/odb/boost/date-time/sqlite/posix-time-traits.hxx b/odb/boost/date-time/sqlite/posix-time-traits.hxx
index 41ce7e5..c8026fa 100644
--- a/odb/boost/date-time/sqlite/posix-time-traits.hxx
+++ b/odb/boost/date-time/sqlite/posix-time-traits.hxx
@@ -29,9 +29,8 @@ namespace odb
namespace sqlite
{
template <>
- class default_value_traits< ::boost::posix_time::ptime, id_text>
+ struct default_value_traits< ::boost::posix_time::ptime, id_text>
{
- public:
typedef ::boost::posix_time::ptime ptime;
typedef ptime value_type;
typedef ptime query_type;
@@ -95,9 +94,8 @@ namespace odb
// SQLite INTEGER. The integer value represents UNIX time.
//
template <>
- class default_value_traits< ::boost::posix_time::ptime, id_integer>
+ struct default_value_traits< ::boost::posix_time::ptime, id_integer>
{
- public:
typedef ::boost::gregorian::date date;
typedef ::boost::posix_time::ptime ptime;
typedef ::boost::posix_time::time_duration time_duration;
@@ -136,9 +134,8 @@ namespace odb
};
template <>
- class default_value_traits< ::boost::posix_time::time_duration, id_text>
+ struct default_value_traits< ::boost::posix_time::time_duration, id_text>
{
- public:
typedef ::boost::posix_time::time_duration time_duration;
typedef time_duration value_type;
typedef time_duration query_type;
@@ -190,9 +187,8 @@ namespace odb
};
template <>
- class default_value_traits< ::boost::posix_time::time_duration, id_integer>
+ struct default_value_traits< ::boost::posix_time::time_duration, id_integer>
{
- public:
typedef ::boost::posix_time::time_duration time_duration;
typedef time_duration value_type;
typedef time_duration query_type;
@@ -226,13 +222,13 @@ namespace odb
};
template <>
- class default_type_traits< ::boost::posix_time::ptime>
+ struct default_type_traits< ::boost::posix_time::ptime>
{
static const database_type_id db_type_id = id_text;
};
template <>
- class default_type_traits< ::boost::posix_time::time_duration>
+ struct default_type_traits< ::boost::posix_time::time_duration>
{
static const database_type_id db_type_id = id_text;
};