Boost logo

Boost :

Subject: Re: [boost] [config] request for BOOST_NO_FWD_STD_DECLARATION
From: Daniel James (dnljms_at_[hidden])
Date: 2011-02-16 08:44:00

On 16 February 2011 13:13, Christopher Jefferson <chris_at_[hidden]> wrote:
> I would be happy with that, except I note that (for example) boost fusion currently unconditionally forward declares std::pair, and every compiler in the regression test (except clang with libc++) passes the std_pair test. Therefore the macro would have to be added to every other compiler, else they would become less efficent.

Codegear fails the test. Bit you can't extrapolate from std::pair to
the containers, since they often have alternative implementations
(e.g. gcc's debug and parallel versions). My plan is to change
container_fwd to not forward declare by default, and add a test to
check for setups where it's possible to forward declare but I'm not
doing it.

Foward declaring std::pair is usually a little pointless anyway, since
config includes utility for most libraries. I know I do it, I only
just realised.


Boost list run by bdawes at, gregod at, cpdaniel at, john at