aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-10-27 17:36:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-10-27 17:36:59 +0200
commite720fdf5207495bd684fee0e9565db9c9815e1db (patch)
tree27e265042e3ecc97fc718113ec249ba6c4f6a91b
parentb5922fe3759de1d5a4941a8bdc5402350359425b (diff)
Implement support for composite value types
New test: common/composite.
-rw-r--r--odb/forward.hxx6
-rw-r--r--odb/traits.hxx5
2 files changed, 8 insertions, 3 deletions
diff --git a/odb/forward.hxx b/odb/forward.hxx
index 38b1415..e2bef03 100644
--- a/odb/forward.hxx
+++ b/odb/forward.hxx
@@ -17,9 +17,6 @@ namespace odb
{
public:
template <typename T>
- class value_traits;
-
- template <typename T>
class object_traits;
template <typename T>
@@ -30,6 +27,9 @@ namespace odb
template <typename P>
class pointer_factory;
+
+ template <typename T>
+ class composite_value_traits;
};
}
diff --git a/odb/traits.hxx b/odb/traits.hxx
index c242e50..318d88b 100644
--- a/odb/traits.hxx
+++ b/odb/traits.hxx
@@ -83,6 +83,11 @@ namespace odb
odb::pointer_traits<typename access::object_traits<T>::pointer_type>
pointer_traits;
};
+
+ template <typename T>
+ struct composite_value_traits: access::composite_value_traits<T>
+ {
+ };
}
#include <odb/post.hxx>