diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-19 10:47:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-21 19:25:06 +0200 |
commit | 6bd95f51beb26d87fd5d5db22391c73f333eee6e (patch) | |
tree | 59621cec994f55fce7a1ced5c3b9edb93a41b084 /odb/header.cxx | |
parent | 7623fb5259da19c33ffe6623b0f306f6c39ede27 (diff) |
Add support for const data members
Const data members are automatically treated as readonly. New test:
const-member.
Diffstat (limited to 'odb/header.cxx')
-rw-r--r-- | odb/header.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/header.cxx b/odb/header.cxx index 7456169..53ab220 100644 --- a/odb/header.cxx +++ b/odb/header.cxx @@ -20,7 +20,10 @@ namespace return; string const& name (public_name (m)); - string const& type (m.type ().fq_name (m.belongs ().hint ())); + + semantics::names* hint; + semantics::type& t (utype (m, hint)); + string const& type (t.fq_name (hint)); os << "static " << type << "&" << endl << name << " (value_type&);" |