aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-28 22:29:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-28 22:29:54 +0200
commit964660e33116dab6b053c28ab8fb9499db97c6e7 (patch)
tree6665d57dfc04b64a96849918658b9fc97d690202
parentc6e025e9dd0d47699f8b38616dc867f49cc25c94 (diff)
Use struct consistently
-rw-r--r--odb/mysql/traits.hxx35
1 files changed, 17 insertions, 18 deletions
diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx
index 41a754f..a643785 100644
--- a/odb/mysql/traits.hxx
+++ b/odb/mysql/traits.hxx
@@ -66,9 +66,8 @@ namespace odb
};
template <typename T, typename I, database_type_id>
- class default_value_traits
+ struct default_value_traits
{
- public:
typedef T value_type;
typedef T query_type;
typedef I image_type;
@@ -119,26 +118,26 @@ namespace odb
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- std::string, details::buffer, id_string>: public string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ std::string, details::buffer, id_string>: string_value_traits
{
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- std::string, details::buffer, id_decimal>: public string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ std::string, details::buffer, id_decimal>: string_value_traits
{
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- std::string, details::buffer, id_enum>: public string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ std::string, details::buffer, id_enum>: string_value_traits
{
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- std::string, details::buffer, id_set>: public string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ std::string, details::buffer, id_set>: string_value_traits
{
};
@@ -163,26 +162,26 @@ namespace odb
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- const char*, details::buffer, id_string>: public c_string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ const char*, details::buffer, id_string>: c_string_value_traits
{
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- const char*, details::buffer, id_decimal>: public c_string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ const char*, details::buffer, id_decimal>: c_string_value_traits
{
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- const char*, details::buffer, id_enum>: public c_string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ const char*, details::buffer, id_enum>: c_string_value_traits
{
};
template <>
- class LIBODB_MYSQL_EXPORT default_value_traits<
- const char*, details::buffer, id_set>: public c_string_value_traits
+ struct LIBODB_MYSQL_EXPORT default_value_traits<
+ const char*, details::buffer, id_set>: c_string_value_traits
{
};