Boost logo

Boost Users :

From: Robert Fairlie-Cuninghame (robert.fairlie-cuninghame_at_[hidden])
Date: 2008-01-31 17:28:31


John Maddock wrote:
>> I'm using gcc 3.3.5. The first compile error is a suspicious
>> BOOST_FUNCTION_NUM_ARGS redefinition by the TR1 headers. The
>> compile output was as follows:
>
> If you look at the error trace below you'll see that both definitions
> are inside Boost.Function: TR1 doesn't mess around with that.
>
Hi John,

Thanks for the reply.

I did check that both
    boost/function/function1.hpp and
    boost/function/detail/function_iterate.hpp
do indeed define BOOST_FUNCTION_NUM_ARGS (without #ifndef or #undef).

I did also note that the new/fixed version of
boost/function/function_base.hpp includes the <functional> header (where
the old version did not) and of course that's where the new TR1 function
classes reside when TR1 is included.

Robert.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net