diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 10:54:12 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 10:54:12 +0200 |
commit | 8f624d2cc58f0abc6bf125ad55260910c013dae4 (patch) | |
tree | 7d1630d6206bc5861d11d62a55744aef4ae70959 | |
parent | 5ba65dfd7e23aad3a2eca1d1542b2d30bf1945fb (diff) |
Internally use primary type names instead of user aliases
-rw-r--r-- | odb/context.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/context.cxx b/odb/context.cxx index f25409f..1444ca3 100644 --- a/odb/context.cxx +++ b/odb/context.cxx @@ -167,7 +167,10 @@ column_type (semantics::data_member& m) const if (t.count ("type")) return t.get<string> ("type"); - string const& name (t.fq_name (m.belongs ().hint ())); + // Don't use the name hint here so that we get the primary name (e.g., + // ::std::string) instead of a user typedef (e.g., my_string). + // + string const& name (t.fq_name ()); type_map_type::const_iterator i (data_->type_map_.find (name)); if (i != data_->type_map_.end ()) |