aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-19 10:47:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:25:06 +0200
commit6bd95f51beb26d87fd5d5db22391c73f333eee6e (patch)
tree59621cec994f55fce7a1ced5c3b9edb93a41b084 /odb/validator.cxx
parent7623fb5259da19c33ffe6623b0f306f6c39ede27 (diff)
Add support for const data members
Const data members are automatically treated as readonly. New test: const-member.
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx
index ffa8aec..59d231f 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -57,10 +57,10 @@ namespace
return;
count_++;
- semantics::type& type (m.type ());
- semantics::belongs& b (m.belongs ());
+ semantics::names* hint;
+ semantics::type& t (context::utype (m, hint));
- if (type.fq_anonymous (b.hint ()))
+ if (t.fq_anonymous (hint))
{
cerr << m.file () << ":" << m.line () << ":" << m.column () << ":"
<< " error: unnamed type in data member declaration" << endl;
@@ -561,7 +561,7 @@ namespace
virtual void
traverse_simple (semantics::data_member& m)
{
- if (context::object_pointer (m.type ()))
+ if (context::object_pointer (utype (m)))
{
semantics::data_member& dm (dm_ != 0 ? *dm_ : m);