diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-08 17:27:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-08 17:27:40 +0200 |
commit | 4fd6bca4e75870958ea61b94e0a1e60e78cd91bc (patch) | |
tree | 2119cae72f45e1ceff1982d8364b4b678ac4ee69 /odb/parser.cxx | |
parent | 7cd11b5f604c7d786261568aa31cd2ae3638f61e (diff) |
Add support for defining composite value type as class template instantiations
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r-- | odb/parser.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index a5f17c3..474aa3d 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -866,7 +866,6 @@ emit_type_decl (tree decl) tree decl_name (DECL_NAME (decl)); char const* name (IDENTIFIER_POINTER (decl_name)); - if (DECL_ARTIFICIAL (decl) && (tc == RECORD_TYPE || tc == UNION_TYPE || tc == ENUMERAL_TYPE)) { @@ -1967,13 +1966,7 @@ add_pragma (node& n, pragma const& p) if (trace) ts << "\t\t pragma " << p.pragma_name << endl; - // Convert '_' to '-' in the pragma name so we get foo-bar instead - // of foo_bar (that's the convention used). - // - string k (p.context_name); - for (size_t i (0); i < k.size (); ++i) - if (k[i] == '_') - k[i] = '-'; + string const& k (p.context_name); if (p.add == 0) { |