From 475a7c89e1c858ae8fec466670af4628129a42d4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Aug 2011 11:39:17 +0200 Subject: Add wrapper support for containers --- odb/common.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/common.cxx') diff --git a/odb/common.cxx b/odb/common.cxx index 794afc1..18d1580 100644 --- a/odb/common.cxx +++ b/odb/common.cxx @@ -17,7 +17,7 @@ simple (semantics::data_member&) } void object_members_base:: -container (semantics::data_member&) +container (semantics::data_member&, semantics::type&) { } @@ -172,9 +172,9 @@ traverse (semantics::data_member& m) if (om_.build_prefix_) om_.prefix_ = old_prefix; } - else if (context::container (t)) + else if (semantics::type* c = context::container_wrapper (t)) { - om_.container (m); + om_.container (m, *c); } else { @@ -307,7 +307,7 @@ traverse (semantics::data_member& m) prefix_ = old_prefix; } - else if (container (t)) + else if (container_wrapper (t)) { // Container gets its own table, so nothing to do here. // -- cgit v1.1