Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61677 - trunk/boost/proto
From: eric_at_[hidden]
Date: 2010-04-29 11:18:21


Author: eric_niebler
Date: 2010-04-29 11:18:21 EDT (Thu, 29 Apr 2010)
New Revision: 61677
URL: http://svn.boost.org/trac/boost/changeset/61677

Log:
more const-correctness fixes when invoking proto domains
Text files modified:
   trunk/boost/proto/make_expr.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/proto/make_expr.hpp
==============================================================================
--- trunk/boost/proto/make_expr.hpp (original)
+++ trunk/boost/proto/make_expr.hpp 2010-04-29 11:18:21 EDT (Thu, 29 Apr 2010)
@@ -966,7 +966,7 @@
 
             result_type operator()(BOOST_PP_ENUM_BINARY_PARAMS(N, typename add_reference<A, >::type a)) const
             {
- expr_type that = {
+ expr_type const that = {
                     BOOST_PP_ENUM(N, BOOST_PROTO_AS_CHILD, (A, a, Domain))
                 };
                 return Domain()(that);
@@ -1001,7 +1001,7 @@
             static type const call(Sequence const &sequence)
             {
                 BOOST_PROTO_FUSION_ITERATORS(N)
- expr_type that = {
+ expr_type const that = {
                     BOOST_PP_ENUM(N, BOOST_PROTO_FUSION_AS_CHILD_AT, ~)
                 };
                 return Domain()(that);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk