From 3772c27bfa99dc3c0a09e78918d47dd2cd27c85c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Apr 2011 15:22:47 +0200 Subject: Use struct instead of class in specialization --- odb/boost/date-time/sqlite/gregorian-traits.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'odb/boost/date-time/sqlite/gregorian-traits.hxx') 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; }; -- cgit v1.1