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/source.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'odb/relational/source.cxx') diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx index 60d3b34..83e3c40 100644 --- a/odb/relational/source.cxx +++ b/odb/relational/source.cxx @@ -4655,8 +4655,8 @@ traverse_view (type& c) // semantics::class_* c (0); - if (semantics::type* cont = container (m)) - c = object_pointer (container_vt (*cont)); + if (container (m)) + c = object_pointer (container_vt (m)); else c = object_pointer (utype (m)); @@ -5899,8 +5899,8 @@ namespace relational type* t; - if (type* c = context::container (*m)) - t = &context::container_vt (*c); + if (context::container (*m)) + t = &context::container_vt (*m); else t = &context::utype (*m); -- cgit v1.1