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/schema.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/schema.cxx')
-rw-r--r-- | odb/relational/schema.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/relational/schema.cxx b/odb/relational/schema.cxx index 0e64408..031bf64 100644 --- a/odb/relational/schema.cxx +++ b/odb/relational/schema.cxx @@ -27,7 +27,7 @@ namespace relational { default_value* dv (0); - semantics::type& t (m.type ()); + semantics::type& t (utype (m)); if (m.count ("default")) dv = &m.get<default_value> ("default"); |