From 763e576ec7e31b7a499a385e5cd04b926a5c75ce Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 13 Aug 2010 13:36:20 +0200 Subject: Move value_traits to the DB-specific namespace --- odb/traits.hxx | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'odb/traits.hxx') diff --git a/odb/traits.hxx b/odb/traits.hxx index 14fa424..d38ee41 100644 --- a/odb/traits.hxx +++ b/odb/traits.hxx @@ -89,31 +89,6 @@ namespace odb pointer_traits::pointer_type> pointer_ops; }; - - template - class value_traits - { - public: - typedef V value_type; - - template - static void - set_value (value_type& v, I i, bool is_null) - { - if (!is_null) - v = value_type (i); - else - v = value_type (); - } - - template - static void - set_image (I& i, bool& is_null, value_type v) - { - is_null = false; - i = I (v); - } - }; } #endif // ODB_TRAITS_HXX -- cgit v1.1