From 8f624d2cc58f0abc6bf125ad55260910c013dae4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Sep 2010 10:54:12 +0200 Subject: Internally use primary type names instead of user aliases --- odb/context.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'odb/context.cxx') 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 ("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 ()) -- cgit v1.1