aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:04:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-10-21 19:04:52 +0200
commit2a876c02d6cbbb57c020862464f2d164b0af5ad8 (patch)
treed24d427b4dd8064ead19960d89fe9037e575f1aa
parent43fa37a1c2cf12fad0a0c39e42e8a9c92be3663b (diff)
Add support for const data members
Const data members are automatically treated as readonly. New test: const-member.
-rw-r--r--odb/oracle/traits.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/oracle/traits.hxx b/odb/oracle/traits.hxx
index 0458aef..7fb8bd02 100644
--- a/odb/oracle/traits.hxx
+++ b/odb/oracle/traits.hxx
@@ -240,7 +240,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;
@@ -310,7 +310,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;