aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-13 13:36:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-13 13:36:20 +0200
commit763e576ec7e31b7a499a385e5cd04b926a5c75ce (patch)
tree090d1b55d44c6f77eff7fd1b47c27882eb0efc8b /odb
parent2e1c7a69b8d1e65ceb339956f7dae3eb5f8453bf (diff)
Move value_traits to the DB-specific namespace
Diffstat (limited to 'odb')
-rw-r--r--odb/traits.hxx25
1 files changed, 0 insertions, 25 deletions
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<typename access::object_traits<T>::pointer_type>
pointer_ops;
};
-
- template <typename V>
- class value_traits
- {
- public:
- typedef V value_type;
-
- template <typename I>
- static void
- set_value (value_type& v, I i, bool is_null)
- {
- if (!is_null)
- v = value_type (i);
- else
- v = value_type ();
- }
-
- template <typename I>
- static void
- set_image (I& i, bool& is_null, value_type v)
- {
- is_null = false;
- i = I (v);
- }
- };
}
#endif // ODB_TRAITS_HXX