aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-19 10:47:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:03:04 +0200
commit16f68924f0704abba3598d261b4a4d74355179f1 (patch)
treea3bd4f60349469f5cee5a84c3762cd7259c10017
parent889e08e66a975d6deb6468f9ce608a7c3e263073 (diff)
Add support for const data members
Const data members are automatically treated as readonly. New test: const-member.
-rw-r--r--odb/mysql/traits.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/mysql/traits.hxx b/odb/mysql/traits.hxx
index 630eaeb..c508624 100644
--- a/odb/mysql/traits.hxx
+++ b/odb/mysql/traits.hxx
@@ -169,7 +169,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;
@@ -226,7 +226,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;