diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-09 20:19:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-09 20:19:17 +0200 |
commit | 9072761e0c9486cc3d1265a1c1e2b39db8e68bf7 (patch) | |
tree | 1e284d8088e51a962bd285b02f8096ed088463ee /odb/context.cxx | |
parent | dfba83f1ef3b5856d36dc29da0b6e02f51bc36b3 (diff) |
Make sure we can use same type as both container and simple value
Diffstat (limited to 'odb/context.cxx')
-rw-r--r-- | odb/context.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/odb/context.cxx b/odb/context.cxx index 9842a22..532a6b7 100644 --- a/odb/context.cxx +++ b/odb/context.cxx @@ -1192,19 +1192,17 @@ is_a (data_member_path const& mp, test_inverse_container | test_readonly_container)) != 0) { - semantics::type& c (utype (m)); - if (f & test_container) - r = r || container_wrapper (c); + r = r || container (m); if (f & test_straight_container) - r = r || (container_wrapper (c) && !inverse (m, kp)); + r = r || (container(m) && !inverse (m, kp)); if (f & test_inverse_container) - r = r || (container_wrapper (c) && inverse (m, kp)); + r = r || (container (m) && inverse (m, kp)); if (f & test_readonly_container) - r = r || (container_wrapper (c) && readonly (mp, ms)); + r = r || (container (m) && readonly (mp, ms)); } return r; |