
On Apr 17, 2008, at 5:18 AM, John Maddock wrote:
Hi Harmut, this is nasty because TR1 and Boost.Function have a mutual (circular) dependency :-(
The reduced test case is:
#include <boost/function/function0.hpp>
while:
#include <boost/function.hpp>
works just fine.
Yuck.
Doug the following patch fixes this problem, is this acceptable to you?
Index: C:/data/boost/boost/trunk/boost/function/detail/prologue.hpp =================================================================== --- C:/data/boost/boost/trunk/boost/function/detail/prologue.hpp (revision 44417) +++ C:/data/boost/boost/trunk/boost/function/detail/prologue.hpp (working copy) @@ -11,7 +11,7 @@ #define BOOST_FUNCTION_PROLOGUE_HPP # include <cassert> # include <algorithm> -# include <functional> // unary_function, binary_function +# include <boost/config/no_tr1/functional.hpp> // unary_function, binary_function # include <boost/throw_exception.hpp> # include <boost/config.hpp> # include <boost/function/function_base.hpp>
Yes, please commit. Thanks! - Doug