Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60682 - trunk/boost/proto
From: eric_at_[hidden]
Date: 2010-03-17 21:32:55


Author: eric_niebler
Date: 2010-03-17 21:32:54 EDT (Wed, 17 Mar 2010)
New Revision: 60682
URL: http://svn.boost.org/trac/boost/changeset/60682

Log:
functional::make_expr and functional::unpack_expr return const-qualified rvalues
Text files modified:
   trunk/boost/proto/make_expr.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/proto/make_expr.hpp
==============================================================================
--- trunk/boost/proto/make_expr.hpp (original)
+++ trunk/boost/proto/make_expr.hpp 2010-03-17 21:32:54 EDT (Wed, 17 Mar 2010)
@@ -559,7 +559,7 @@
                     Tag
                   , Domain
                   , A0 const
- >::type
+ >::type const
                 operator ()(A0 const &a0) const
                 {
                     return proto::detail::make_expr_<
@@ -630,7 +630,7 @@
                 /// \param sequence A Fusion Forward Sequence
                 /// \return <tt>proto::unpack_expr\<Tag, Domain\>(sequence)</tt>
                 template<typename Sequence>
- typename result_of::unpack_expr<Tag, Domain, Sequence const>::type
+ typename result_of::unpack_expr<Tag, Domain, Sequence const>::type const
                 operator ()(Sequence const &sequence) const
                 {
                     return proto::detail::unpack_expr_<
@@ -665,7 +665,7 @@
                 };
 
                 template<typename Sequence>
- typename proto::result_of::unpack_expr<Tag, Domain, Sequence const>::type
+ typename proto::result_of::unpack_expr<Tag, Domain, Sequence const>::type const
                 operator ()(Sequence const &sequence) const
                 {
                     return proto::detail::unpack_expr_<
@@ -1058,7 +1058,7 @@
             Tag
           , Domain
             BOOST_PP_ENUM_TRAILING_PARAMS(N, const A)
- >::type
+ >::type const
         operator ()(BOOST_PP_ENUM_BINARY_PARAMS(N, const A, &a)) const
         {
             return proto::detail::make_expr_<


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