diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-28 11:39:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-08-28 14:15:45 +0200 |
commit | 475a7c89e1c858ae8fec466670af4628129a42d4 (patch) | |
tree | 371d7084250767ae927e685fb7a5da630626280f /odb/relational/type-processor.cxx | |
parent | 64d0ceffaaf5f57a3d24a5210bf0ad2a8474a618 (diff) |
Add wrapper support for containers
Diffstat (limited to 'odb/relational/type-processor.cxx')
-rw-r--r-- | odb/relational/type-processor.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/odb/relational/type-processor.cxx b/odb/relational/type-processor.cxx index 24a7325..e53126f 100644 --- a/odb/relational/type-processor.cxx +++ b/odb/relational/type-processor.cxx @@ -195,7 +195,8 @@ namespace relational // See if this is a container type. // - if (process_container (m)) + if (process_container (m, t) || + (wt != 0 && process_container (m, *wt))) return; // If it is none of the above then we have an error. @@ -306,7 +307,7 @@ namespace relational } bool - process_container (semantics::data_member& m) + process_container (semantics::data_member& m, semantics::type& t) { // The overall idea is as follows: try to instantiate the container // traits class template. If we are successeful, then this is a @@ -314,8 +315,6 @@ namespace relational // the instantiation. Otherwise, this is not a container. // - semantics::type& t (m.type ()); - container_kind_type ck; semantics::type* vt (0); semantics::type* it (0); |