summaryrefslogtreecommitdiff
path: root/odb/common.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/common.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/common.cxx')
-rw-r--r--odb/common.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/common.cxx b/odb/common.cxx
index bc9e214..27b647c 100644
--- a/odb/common.cxx
+++ b/odb/common.cxx
@@ -163,7 +163,7 @@ traverse (semantics::data_member& m)
om_.member_path_.push_back (&m);
- semantics::type& t (m.type ());
+ semantics::type& t (utype (m));
if (semantics::class_* comp = context::composite_wrapper (t))
{
@@ -410,7 +410,7 @@ traverse (semantics::data_member& m)
oc_.member_path_.push_back (&m);
- semantics::type& t (m.type ());
+ semantics::type& t (utype (m));
if (semantics::class_* comp = composite_wrapper (t))
{