diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-22 18:08:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-22 18:08:32 +0200 |
commit | dfc260adf46e79b039685d554797b403d76c6bfd (patch) | |
tree | 7051fc42ae1f4d78ca0940dfedab0e4deb1bebd7 /odb/relational/source.cxx | |
parent | 2ca7acef7c858fb7f21b5101dedfc021aea62ff8 (diff) |
Implement member type mapping, more m.type() cleanups
Diffstat (limited to 'odb/relational/source.cxx')
-rw-r--r-- | odb/relational/source.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx index 4bb8e9d..97e7ea0 100644 --- a/odb/relational/source.cxx +++ b/odb/relational/source.cxx @@ -1299,7 +1299,7 @@ traverse_object (type& c) // then cast away constness. Otherwise, we assume that the user- // provided expression handles this. // - bool cast (ma.direct () && const_type (id->type ())); + bool cast (ma.direct () && const_member (*id)); if (cast) os << "const_cast< id_type& > (" << endl; @@ -1334,7 +1334,7 @@ traverse_object (type& c) // then cast away constness. Otherwise, we assume that the user- // provided expression handles this. // - bool cast (opt_ma_set->direct () && const_type (opt->type ())); + bool cast (opt_ma_set->direct () && const_member (*opt)); if (cast) os << "const_cast< version_type& > (" << endl; @@ -1558,7 +1558,7 @@ traverse_object (type& c) // then cast away constness. Otherwise, we assume that the user- // provided expression handles this. // - bool cast (ma.direct () && const_type (id->type ())); + bool cast (ma.direct () && const_member (*id)); if (cast) os << "const_cast< id_type& > (" << endl; @@ -1593,7 +1593,7 @@ traverse_object (type& c) // then cast away constness. Otherwise, we assume that the user- // provided expression handles this. // - bool cast (opt_ma_set->direct () && const_type (opt->type ())); + bool cast (opt_ma_set->direct () && const_member (*opt)); if (cast) os << "const_cast< version_type& > (" << endl; @@ -2140,7 +2140,7 @@ traverse_object (type& c) // then cast away constness. Otherwise, we assume that the user- // provided expression handles this. // - bool cast (opt_ma_set->direct () && const_type (opt->type ())); + bool cast (opt_ma_set->direct () && const_member (*opt)); if (cast) os << "const_cast< version_type& > (" << endl; @@ -2459,7 +2459,7 @@ traverse_object (type& c) // then cast away constness. Otherwise, we assume that the user- // provided expression handles this. // - bool cast (opt_ma_set->direct () && const_type (opt->type ())); + bool cast (opt_ma_set->direct () && const_member (*opt)); if (cast) os << "const_cast< version_type& > (" << endl; |