Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68924 - in sandbox/SOC/2010/phoenix3/boost/phoenix: core core/detail scope stl/container
From: thom.heller_at_[hidden]
Date: 2011-02-15 14:36:30


Author: theller
Date: 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
New Revision: 68924
URL: http://svn.boost.org/trac/boost/changeset/68924

Log:
Fixes for msvc-9.0
Text files modified:
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/actor.hpp | 10 ++++++++++
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/arity.hpp | 7 ++++---
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/detail/call.hpp | 4 ++--
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/is_nullary.hpp | 2 +-
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp | 7 ++++++-
   sandbox/SOC/2010/phoenix3/boost/phoenix/scope/lambda.hpp | 6 +++---
   sandbox/SOC/2010/phoenix3/boost/phoenix/stl/container/container.hpp | 6 +++---
   7 files changed, 29 insertions(+), 13 deletions(-)

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/actor.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/actor.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/actor.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -24,6 +24,11 @@
 #include <boost/mpl/void.hpp>
 #include <cstring>
 
+#ifdef BOOST_MSVC
+#pragma warning(push)
+#pragma warning(disable: 4522) // 'this' used in base member initializer list
+#endif
+
 namespace boost { namespace phoenix
 {
     template <typename Expr>
@@ -164,5 +169,10 @@
     {};
 }
 
+
+#ifdef BOOST_MSVC
+#pragma warning(pop)
+#endif
+
 #endif
 

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/arity.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/arity.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/arity.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -15,6 +15,7 @@
 #include <boost/phoenix/core/meta_grammar.hpp>
 #include <boost/phoenix/core/terminal_fwd.hpp>
 #include <boost/phoenix/support/vector.hpp>
+#include <boost/proto/matches.hpp>
 #include <boost/proto/transform/fold.hpp>
 
 namespace boost { namespace phoenix
@@ -51,10 +52,10 @@
             : proto::fold<
                 proto::_
               , mpl::int_<0>
- , mpl::max<
+ , proto::make<mpl::max<
                     proto::_state
- , evaluator(proto::_, functional::context(_env, _actions))
- >()
+ , proto::call<evaluator(proto::_, proto::call<functional::context(_env, _actions)>)>
+ >()>
>
         {};
     };

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/detail/call.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/detail/call.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/detail/call.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -64,7 +64,7 @@
             : proto::transform_impl<Expr, State, Data>
         {
             typedef
- typename result_of::context<State, Data>::type
+ typename boost::phoenix::result_of::context<State, Data>::type
                 context_type;
 
             BOOST_PP_REPEAT(PHOENIX_ITERATION, M0, _)
@@ -79,7 +79,7 @@
               , typename call_impl::data_param d
             ) const
             {
- return Fun()(context(s, d) BOOST_PP_REPEAT(PHOENIX_ITERATION, M1, _));
+ return Fun()(boost::phoenix::context(s, d) BOOST_PP_REPEAT(PHOENIX_ITERATION, M1, _));
             }
         };
 

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/is_nullary.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/is_nullary.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/is_nullary.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -35,7 +35,7 @@
               , mpl::true_()
               , mpl::and_<
                     proto::_state
- , evaluator(proto::_, _context)
+ , proto::call<evaluator(proto::_, _context)>
>()
>
         {};

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/terminal.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -81,7 +81,12 @@
 
     template <typename Dummy>
     struct default_actions::when<rule::custom_terminal, Dummy>
- : proto::lazy<custom_terminal<proto::_value>(proto::_value, functional::context(_env, _actions))>
+ : proto::lazy<
+ custom_terminal<proto::_value>(
+ proto::_value
+ , _context
+ )
+ >
     {};
 
     namespace detail

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/scope/lambda.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/scope/lambda.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/scope/lambda.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -131,11 +131,11 @@
         : proto::call<
             evaluator(
                 proto::_child_c<2>
- , functional::context(
+ , proto::call<functional::context(
                     mpl::true_()
                   , detail::scope_is_nullary_actions()
- )
- , int()
+ )>
+ , proto::make<int()>
             )
>
     {};

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/stl/container/container.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/stl/container/container.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/stl/container/container.hpp 2011-02-15 14:36:23 EST (Tue, 15 Feb 2011)
@@ -713,7 +713,7 @@
         typedef void result_type;
 
         template <typename C, typename Arg1, typename Arg2>
- void operator()(C& c, Arg1 arg1, Arg2 arg2) const
+ void operator()(C& c, Arg1 arg1, Arg2 &arg2) const
         {
             c.splice(arg1, arg2);
         }
@@ -727,7 +727,7 @@
         void operator()(
             C& c
           , Arg1 arg1
- , Arg2 arg2
+ , Arg2 & arg2
           , Arg3 arg3
         ) const
         {
@@ -744,7 +744,7 @@
         void operator()(
             C c
           , Arg1 arg1
- , Arg2 arg2
+ , Arg2 & arg2
           , Arg3 arg3
           , Arg4 arg4
         ) const


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