From a4dc24ae7cbcb5b8f0966fac973abb3584e6cf73 Mon Sep 17 00:00:00 2001 From: Vesa Karvonen Date: Sun, 13 Jan 2002 15:27:25 +0000 Subject: [PATCH] IF uses TUPLE_ELEM to remove two macros [SVN r12294] --- include/boost/preprocessor/if.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/boost/preprocessor/if.hpp b/include/boost/preprocessor/if.hpp index fa12336..b765a35 100644 --- a/include/boost/preprocessor/if.hpp +++ b/include/boost/preprocessor/if.hpp @@ -18,6 +18,7 @@ */ #include +#include //! Expands to T if C != 0 and E if C == 0. /*! @@ -28,9 +29,7 @@ BOOST_PP_REPEAT(). #ifndef DOXYGEN_SHOULD_SKIP_THIS #define BOOST_PP_IF_BOOL(C,T,E) BOOST_PP_IF_BOOL_DELAY(C,T,E) -#define BOOST_PP_IF_BOOL_DELAY(C,T,E) BOOST_PP_IF_BOOL##C(T,E) -#define BOOST_PP_IF_BOOL0(T,E) E -#define BOOST_PP_IF_BOOL1(T,E) T +#define BOOST_PP_IF_BOOL_DELAY(C,T,E) BOOST_PP_TUPLE2_ELEM##C(E,T) #endif //! Obsolete. Use BOOST_PP_IF().