summaryrefslogtreecommitdiff
path: root/odb/common.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-09 20:19:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-09 20:19:17 +0200
commit9072761e0c9486cc3d1265a1c1e2b39db8e68bf7 (patch)
tree1e284d8088e51a962bd285b02f8096ed088463ee /odb/common.cxx
parentdfba83f1ef3b5856d36dc29da0b6e02f51bc36b3 (diff)
Make sure we can use same type as both container and simple value
Diffstat (limited to 'odb/common.cxx')
-rw-r--r--odb/common.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/common.cxx b/odb/common.cxx
index 27b647c..322a915 100644
--- a/odb/common.cxx
+++ b/odb/common.cxx
@@ -208,7 +208,7 @@ traverse (semantics::data_member& m)
om_.member_scope_.pop_back ();
}
- else if (semantics::type* c = context::container_wrapper (t))
+ else if (semantics::type* c = context::container (m))
{
om_.traverse_container (m, *c);
}
@@ -426,7 +426,7 @@ traverse (semantics::data_member& m)
oc_.member_scope_.pop_back ();
}
- else if (container_wrapper (t))
+ else if (container (m))
{
// Container gets its own table, so nothing to do here.
//