diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-02 11:43:37 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-02 11:43:37 +0200 |
commit | 1d438c0c211d21e33f3eec833a307416000b32a2 (patch) | |
tree | 38789fbe5e0dcae6f61d6f7c41d55459ec6e35e7 /odb/context.hxx | |
parent | c9531e4140c08dcb45f05698c5ff6d201f319e8f (diff) |
C++ type mapping support for container elementsas
Diffstat (limited to 'odb/context.hxx')
-rw-r--r-- | odb/context.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/odb/context.hxx b/odb/context.hxx index 6e1d733..5eef193 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -1509,27 +1509,27 @@ public: } static semantics::type& - container_idt (semantics::data_member& m) + container_idt (semantics::data_member& m, const custom_cxx_type** trans = 0) { - return utype (m, "id"); + return utype (m, "id", trans); } static semantics::type& - container_vt (semantics::type& c) + container_vt (semantics::data_member& m, const custom_cxx_type** trans = 0) { - return *c.get<semantics::type*> ("value-tree-type"); + return utype (m, "value", trans); } static semantics::type& - container_it (semantics::type& c) + container_it (semantics::data_member& m, const custom_cxx_type** trans = 0) { - return *c.get<semantics::type*> ("index-tree-type"); + return utype (m, "index", trans); } static semantics::type& - container_kt (semantics::type& c) + container_kt (semantics::data_member& m, const custom_cxx_type** trans = 0) { - return *c.get<semantics::type*> ("key-tree-type"); + return utype (m, "key", trans); } static bool |