Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64381 - in sandbox/SOC/2010/phoenix3: boost/phoenix/core libs/phoenix/test
From: thom.heller_at_[hidden]
Date: 2010-07-27 06:28:57


Author: theller
Date: 2010-07-27 06:28:56 EDT (Tue, 27 Jul 2010)
New Revision: 64381
URL: http://svn.boost.org/trac/boost/changeset/64381

Log:
forgot some files
Added:
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/function_equal.hpp (contents, props changed)
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/visit_each.hpp (contents, props changed)
Text files modified:
   sandbox/SOC/2010/phoenix3/boost/phoenix/core/argument.hpp | 12 ++++++------
   sandbox/SOC/2010/phoenix3/libs/phoenix/test/Jamfile | 2 +-
   2 files changed, 7 insertions(+), 7 deletions(-)

Modified: sandbox/SOC/2010/phoenix3/boost/phoenix/core/argument.hpp
==============================================================================
--- sandbox/SOC/2010/phoenix3/boost/phoenix/core/argument.hpp (original)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/argument.hpp 2010-07-27 06:28:56 EDT (Tue, 27 Jul 2010)
@@ -81,12 +81,12 @@
         make_argument<mpl::int_<0> >::type const _1 = {};
         make_argument<mpl::int_<1> >::type const _2 = {};
         make_argument<mpl::int_<2> >::type const _3 = {};
- make_argument<mpl::int_<2> >::type const _4 = {};
- make_argument<mpl::int_<2> >::type const _5 = {};
- make_argument<mpl::int_<2> >::type const _6 = {};
- make_argument<mpl::int_<2> >::type const _7 = {};
- make_argument<mpl::int_<2> >::type const _8 = {};
- make_argument<mpl::int_<2> >::type const _9 = {};
+ make_argument<mpl::int_<3> >::type const _4 = {};
+ make_argument<mpl::int_<4> >::type const _5 = {};
+ make_argument<mpl::int_<5> >::type const _6 = {};
+ make_argument<mpl::int_<6> >::type const _7 = {};
+ make_argument<mpl::int_<7> >::type const _8 = {};
+ make_argument<mpl::int_<8> >::type const _9 = {};
     }
 
     namespace arg_names

Added: sandbox/SOC/2010/phoenix3/boost/phoenix/core/function_equal.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/function_equal.hpp 2010-07-27 06:28:56 EDT (Tue, 27 Jul 2010)
@@ -0,0 +1,29 @@
+/*==============================================================================
+ Copyright (c) 2005-2010 Joel de Guzman
+ Copyright (c) 2010 Thomas Heller
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#ifndef PHOENIX_CORE_FUNCTION_EQUAL_HPP
+#define PHOENIX_CORE_FUNCTION_EQUAL_HPP
+
+namespace boost { namespace phoenix
+{
+ // FIXME: need some binary visitation to compare runtime information, needed for bind tests
+ template <typename Expr1, typename Expr2>
+ bool function_equal_impl(actor<Expr1> const&, actor<Expr2> const&)
+ {
+ return typeid(actor<Expr1>) == typeid(actor<Expr2>);
+ }
+
+ template <typename Expr1, typename Expr2>
+ bool function_equal(actor<Expr1> const& a1, actor<Expr2> const& a2)
+ {
+ return function_equal_impl(a1, a2);
+ }
+
+}}
+
+#endif
+

Added: sandbox/SOC/2010/phoenix3/boost/phoenix/core/visit_each.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/phoenix3/boost/phoenix/core/visit_each.hpp 2010-07-27 06:28:56 EDT (Tue, 27 Jul 2010)
@@ -0,0 +1,40 @@
+/*==============================================================================
+ Copyright (c) 2005-2010 Joel de Guzman
+ Copyright (c) 2010 Thomas Heller
+
+ Distributed under the Boost Software License, Version 1.0. (See accompanying
+ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+==============================================================================*/
+#ifndef PHOENIX_CORE_VISIT_EACH_HPP
+#define PHOENIX_CORE_VISIT_EACH_HPP
+
+#include <boost/fusion/algorithm/iteration/for_each.hpp>
+#include <boost/phoenix/core/actor.hpp>
+#include <boost/visit_each.hpp>
+
+namespace boost { namespace phoenix
+{
+ namespace detail
+ {
+ template <typename Visitor>
+ struct visit_each_impl
+ {
+ Visitor& visitor;
+ visit_each_impl(Visitor& visitor ) : visitor(visitor) {}
+
+ template <typename T>
+ void operator()(T const& t) const
+ {
+ visit_each(visitor, t);
+ }
+ };
+ }
+
+ template <typename Visitor, typename Expr>
+ void visit_each(Visitor& visitor, actor<Expr> const& a, long)
+ {
+ fusion::for_each(a, detail::visit_each_impl<Visitor>(visitor));
+ }
+}}
+
+#endif

Modified: sandbox/SOC/2010/phoenix3/libs/phoenix/test/Jamfile
==============================================================================
--- sandbox/SOC/2010/phoenix3/libs/phoenix/test/Jamfile (original)
+++ sandbox/SOC/2010/phoenix3/libs/phoenix/test/Jamfile 2010-07-27 06:28:56 EDT (Tue, 27 Jul 2010)
@@ -106,7 +106,7 @@
     [ run boost_bind_compatibility/bind_function_test.cpp ] # problem: fn.contains not working properly
     [ run boost_bind_compatibility/bind_mf2_test.cpp ]
     [ run boost_bind_compatibility/bind_not_test.cpp ]
- [ run boost_bind_compatibility/bind_placeholer_test.cpp ] # problem: real custom placeholders, like in the original test not implemented yet
+ [ run boost_bind_compatibility/bind_placeholder_test.cpp ] # problem: real custom placeholders, like in the original test not implemented yet
     [ run boost_bind_compatibility/bind_ref_test.cpp ]
     [ run boost_bind_compatibility/bind_rel_test.cpp ]
     [ run boost_bind_compatibility/bind_rvalue_test.cpp ]


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