From d171c25dd20a9197f3150988359098a1fd9f9482 Mon Sep 17 00:00:00 2001 From: Tobias Schwinger Date: Tue, 22 May 2007 10:53:49 +0000 Subject: [PATCH] fixes bug in unfused_generic reported by Eric Niebler [SVN r37739] --- .../boost/fusion/functional/adapter/detail/pow2_explode.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/fusion/functional/adapter/detail/pow2_explode.hpp b/include/boost/fusion/functional/adapter/detail/pow2_explode.hpp index 3d5afcb8..2d14ad70 100644 --- a/include/boost/fusion/functional/adapter/detail/pow2_explode.hpp +++ b/include/boost/fusion/functional/adapter/detail/pow2_explode.hpp @@ -22,10 +22,11 @@ # define BOOST_PP_FILENAME_2 \ -# define BOOST_PP_VALUE 1 << (N >> 4) +# define BOOST_PP_VALUE (1 << N) >> 4 # if BOOST_PP_VALUE > BOOST_PP_LIMIT_ITERATION # error "Preprocessor limit exceeded." # endif + # include BOOST_PP_ASSIGN_SLOT(2) # define BOOST_PP_ITERATION_LIMITS (0,BOOST_PP_DEC(BOOST_PP_SLOT_2())) # include BOOST_PP_ITERATE()