From 1d438c0c211d21e33f3eec833a307416000b32a2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Jul 2015 11:43:37 +0200 Subject: C++ type mapping support for container elements --- odb/relational/pgsql/context.cxx | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'odb/relational/pgsql/context.cxx') diff --git a/odb/relational/pgsql/context.cxx b/odb/relational/pgsql/context.cxx index 1910187..f8a9fe2 100644 --- a/odb/relational/pgsql/context.cxx +++ b/odb/relational/pgsql/context.cxx @@ -155,14 +155,17 @@ namespace relational struct has_grow_member: member_base { + has_grow_member (bool& r, user_section* section = 0) + : relational::member_base (0, 0, string (), string (), section), + r_ (r) {} + has_grow_member (bool& r, - user_section* section = 0, - semantics::type* type = 0, + user_section* section, + semantics::type* t, + const custom_cxx_type* ct, string const& key_prefix = string ()) - : relational::member_base (type, string (), key_prefix, section), - r_ (r) - { - } + : relational::member_base (t, ct, string (), key_prefix, section), + r_ (r) {} virtual bool pre (member_info& mi) @@ -229,10 +232,13 @@ namespace relational } bool context:: - grow_impl (semantics::data_member& m, semantics::type& t, string const& kp) + grow_impl (semantics::data_member& m, + semantics::type& t, + const custom_cxx_type* ct, + string const& kp) { bool r (false); - has_grow_member mt (r, 0, &t, kp); + has_grow_member mt (r, 0, &t, ct, kp); mt.traverse (m); return r; } -- cgit v1.1