diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-19 10:47:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-10-21 19:06:55 +0200 |
commit | 2e8daa4a5880f47e547de7db4e7ff5074d365723 (patch) | |
tree | c07c2f34f23ca4c3c2e4078fac8caf91b33ddd70 | |
parent | e514a43339bbce7c8d15fb1350674ecfc5649e14 (diff) |
Add support for const data members
Const data members are automatically treated as readonly. New test:
const-member.
-rw-r--r-- | odb/sqlite/traits.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/sqlite/traits.hxx b/odb/sqlite/traits.hxx index c93c2c6..5d88365 100644 --- a/odb/sqlite/traits.hxx +++ b/odb/sqlite/traits.hxx @@ -92,7 +92,7 @@ namespace odb struct wrapped_value_traits<W, ID, false> { typedef wrapper_traits<W> wtraits; - typedef typename wtraits::wrapped_type wrapped_type; + typedef typename wtraits::unrestricted_wrapped_type wrapped_type; typedef W value_type; typedef wrapped_type query_type; @@ -131,7 +131,7 @@ namespace odb struct wrapped_value_traits<W, ID, true> { typedef wrapper_traits<W> wtraits; - typedef typename wtraits::wrapped_type wrapped_type; + typedef typename wtraits::unrestricted_wrapped_type wrapped_type; typedef W value_type; typedef wrapped_type query_type; |