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/relational/source.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/relational/source.cxx')
-rw-r--r-- | odb/relational/source.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx index fe23ac9..be16309 100644 --- a/odb/relational/source.cxx +++ b/odb/relational/source.cxx @@ -217,7 +217,7 @@ namespace relational // is_null()/is_not_null() will be valid for composite values // as well. // - if (!context::composite_wrapper (m->type ())) + if (!context::composite_wrapper (context::utype (*m))) break; ptt = tt; @@ -259,7 +259,7 @@ namespace relational { using semantics::type; - type* t (&m->type ()); + type* t (&context::utype (*m)); if (type* c = context::container_wrapper (*t)) t = &context::container_vt (*c); |