diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-03 14:07:00 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-03 14:07:00 +0200 |
commit | c67f076c75a36877ce142dc43a1ed2292ab8117a (patch) | |
tree | b3c22bccede309dbc5dbbff883d503a7b086e4e0 /odb/mysql/traits.hxx | |
parent | 7f528c0bc15ad9b192a61636aec59ece84f35a12 (diff) |
Add version inclusion, other cosmetic changes
Diffstat (limited to 'odb/mysql/traits.hxx')
-rw-r--r-- | odb/mysql/traits.hxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx index 18aeac5..a8c6c09 100644 --- a/odb/mysql/traits.hxx +++ b/odb/mysql/traits.hxx @@ -6,24 +6,29 @@ #ifndef ODB_MYSQL_TRAITS_HXX #define ODB_MYSQL_TRAITS_HXX +#include <mysql/mysql.h> // MYSQL_TIME, used in custom specializations. + #include <string> #include <cstddef> // std::size_t #include <cstring> // std::memcpy #include <odb/traits.hxx> +#include <odb/mysql/version.hxx> + namespace odb { namespace mysql { template <typename T> - struct value_traits: odb::value_traits<T> + class value_traits: public odb::value_traits<T> { }; template <> - struct value_traits<std::string> + class value_traits<std::string> { + public: typedef std::string value_type; static void |