----- Original Message -----
From: "Russell Yanofsky" <[EMAIL PROTECTED]>


> A preprocessor bug in codewarrior 8.3 causes various parts of the mpl
> library to fail to compile. There was already a workaround in place, but
> it was disabled for the latest compiler version. A patch which fixes the
> problem is below.
>
> - Russ
>
> Index: aux_/preprocessor/sub.hpp
> ===================================================================
> RCS file: /cvsroot/boost/boost/boost/mpl/aux_/preprocessor/sub.hpp,v
> retrieving revision 1.1.2.2
> diff -u -r1.1.2.2 sub.hpp
> --- aux_/preprocessor/sub.hpp 13 Sep 2002 05:29:28 -0000 1.1.2.2
> +++ aux_/preprocessor/sub.hpp 21 Dec 2002 06:50:48 -0000
> @@ -19,7 +19,7 @@
>
>  #include "boost/mpl/aux_/preprocessor/tuple.hpp"
>
> -#if !defined(__MWERKS__) || __MWERKS__ > 0x3002
> +#if !defined(__MWERKS__) || __MWERKS__ > 0x3003
>  #   define BOOST_MPL_PP_SUB(i,j) \
>      BOOST_MPL_PP_SUB_DELAY(i,j)

On a related note:

Aleksey, you might want to take a look at the docs for
"BOOST_PP_SEQ_REST_N".  The sample code implements extremely fast addition
and subtraction which you might want to emulate in the MPL for the time
being.  It effectively unravels the arithmetic.  I haven't tested the actual
sample code on Metrowerks, but I have tested all of the primitives used.

Paul Mensonides

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to