summaryrefslogtreecommitdiff
path: root/odb/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-28 11:39:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-28 14:15:45 +0200
commit475a7c89e1c858ae8fec466670af4628129a42d4 (patch)
tree371d7084250767ae927e685fb7a5da630626280f /odb/common.cxx
parent64d0ceffaaf5f57a3d24a5210bf0ad2a8474a618 (diff)
Add wrapper support for containers
Diffstat (limited to 'odb/common.cxx')
-rw-r--r--odb/common.cxx8
1 files changed, 4 insertions, 4 deletions
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.
//