From d37ef5aeb95cd58e5a9242c2b70b3b71f1fe01b8 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Mon, 23 Feb 2004 01:47:11 +0000 Subject: [PATCH] restore configurability w/o preprocessed headers [SVN r22363] --- include/boost/mpl/if.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/mpl/if.hpp b/include/boost/mpl/if.hpp index c4f9315..cec109a 100644 --- a/include/boost/mpl/if.hpp +++ b/include/boost/mpl/if.hpp @@ -23,6 +23,7 @@ #include "boost/mpl/aux_/void_spec.hpp" #include "boost/mpl/aux_/lambda_support.hpp" #include "boost/mpl/aux_/config/workaround.hpp" +#include "boost/mpl/aux_/config/use_preprocessed.hpp" #include "boost/config.hpp" #if !defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT) @@ -141,7 +142,8 @@ BOOST_MPL_AUX_AGLORITHM_NAMESPACE_END BOOST_MPL_AUX_ALGORITHM_VOID_SPEC(3, if_) -#if !defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT) +#if !defined(BOOST_MPL_NO_FULL_LAMBDA_SUPPORT) \ + && !defined(BOOST_MPL_NO_PREPROCESSED_HEADERS) // Aleksey, check it out: lazy if_ evaluation in lambdas! // I think this doesn't handle the case of @@ -229,6 +231,7 @@ struct bind3, T1, T2, T3> typedef typename f_::type type; }; }; + #endif } // namespace mpl