|
Subject: [mpl] mpl::if_ workaround for digital mars Newsgroups: gmane.comp.lib.boost.devel Date: 2004-09-04 11:04:25 GMT (4 years, 43 weeks, 2 days, 7 hours and 28 minutes ago) Aleksey, 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. thanks, Daniel Index: boost/mpl/if.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/mpl/if.hpp,v retrieving revision 1.23 diff -u -r1.23 if.hpp --- boost/mpl/if.hpp 2 Sep 2004 15:40:41 -0000 1.23 +++ boost/mpl/if.hpp 4 Sep 2004 10:54:28 -0000 @@ -14,6 +14,11 @@ // $Date: 2004/09/02 15:40:41 $ // $Revision: 1.23 $ +#include <boost/mpl/aux_/config/workaround.hpp> +#if BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840)) +# include <boost/mpl/bind.hpp> +#endif + #include <boost/mpl/aux_/value_wknd.hpp> #include <boost/mpl/aux_/static_cast.hpp> #include <boost/mpl/aux_/na_spec.hpp> _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost |
|
|