Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49118 - trunk/boost/spirit/home/phoenix/core/detail
From: joel_at_[hidden]
Date: 2008-10-02 18:30:31


Author: djowel
Date: 2008-10-02 18:30:31 EDT (Thu, 02 Oct 2008)
New Revision: 49118
URL: http://svn.boost.org/trac/boost/changeset/49118

Log:
Bug fix (reported by Steven Watanabe)
Text files modified:
   trunk/boost/spirit/home/phoenix/core/detail/function_eval.hpp | 12 ++++++++++--
   1 files changed, 10 insertions(+), 2 deletions(-)

Modified: trunk/boost/spirit/home/phoenix/core/detail/function_eval.hpp
==============================================================================
--- trunk/boost/spirit/home/phoenix/core/detail/function_eval.hpp (original)
+++ trunk/boost/spirit/home/phoenix/core/detail/function_eval.hpp 2008-10-02 18:30:31 EDT (Thu, 02 Oct 2008)
@@ -32,7 +32,11 @@
         template <typename Env, typename F>
         struct result
         {
- typedef typename F::template result<Env>::type fn;
+ typedef typename
+ remove_reference<
+ typename F::template result<Env>::type
+ >::type
+ fn;
             typedef typename fn::result_type type;
         };
 
@@ -96,7 +100,11 @@
           , BOOST_PP_ENUM_PARAMS(N, typename A)>
         struct result
         {
- typedef typename F::template result<Env>::type fn;
+ typedef typename
+ remove_reference<
+ typename F::template result<Env>::type
+ >::type
+ fn;
             BOOST_PP_REPEAT(N, PHOENIX_GET_ARG, _)
 
             typedef BOOST_PP_CAT(mpl::vector, N)


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