Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-09-05 06:47:39

Daniel James writes:
> I've just been trying the new version of mpl on Digital Mars. The
> attached patch fixes the bug that sometimes causes mpl::if_ to fail. The
> problem is that the class template gets redeclared with different
> parameter names by bind.hpp, and this confuses the compiler. When it
> instantiates the class, it uses the wrong names. The fix is just to make
> sure bind.hpp is included before mpl::if_ is defined.

Hmm, that will work only if neither bind nor its dependencies include "if.hpp".
They don't right now, but I wouldn't rely on it. I think I'd prefer just to
fix the names in the header to match the ones used by the bind specialization
-- those are considerably less likely to change.

OK, fixed. Thanks for the report!

Aleksey Gurtovoy
MetaCommunications Engineering

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