
On 16 February 2011 13:13, Christopher Jefferson <chris@bubblescope.net> 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. Daniel