|
Boost-Commit : |
From: eric_at_[hidden]
Date: 2008-05-18 19:16:36
Author: eric_niebler
Date: 2008-05-18 19:16:36 EDT (Sun, 18 May 2008)
New Revision: 45501
URL: http://svn.boost.org/trac/boost/changeset/45501
Log:
minor simplification
Text files modified:
branches/proto/v4/boost/phoenix/statement/switch.hpp | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
Modified: branches/proto/v4/boost/phoenix/statement/switch.hpp
==============================================================================
--- branches/proto/v4/boost/phoenix/statement/switch.hpp (original)
+++ branches/proto/v4/boost/phoenix/statement/switch.hpp 2008-05-18 19:16:36 EDT (Sun, 18 May 2008)
@@ -212,24 +212,21 @@
////////////////////////////////////////////////////////////////////////////////////////////
template<
typename Expr, typename State, typename Data
- , typename A0
- BOOST_PP_COMMA_IF(N)
- BOOST_PP_ENUM_SHIFTED_PARAMS(BOOST_PP_INC(N), typename A)
+ , typename Args
+ BOOST_PP_ENUM_TRAILING_PARAMS(N, typename A)
>
void do_switch(
Expr &expr, State &state, Data &data
- , proto::expr<proto::tag::comma, A0, 2> const &a0
- BOOST_PP_COMMA_IF(N)
- BOOST_PP_ENUM_SHIFTED_BINARY_PARAMS(BOOST_PP_INC(N), A, const &a)
+ , proto::expr<proto::tag::comma, Args, 2> const &cases
+ BOOST_PP_ENUM_TRAILING_BINARY_PARAMS(N, A, const &a)
)
{
// Fan out the arguments
detail::do_switch(
expr, state, data
- , a0.child0.proto_base()
- , a0.child1.proto_base()
- BOOST_PP_COMMA_IF(N)
- BOOST_PP_ENUM_SHIFTED_PARAMS(BOOST_PP_INC(N), a)
+ , cases.child0.proto_base()
+ , cases.child1.proto_base()
+ BOOST_PP_ENUM_TRAILING_PARAMS(N, a)
);
}
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