Boost logo

Boost :

From: Cromwell Enage (sponage_at_[hidden])
Date: 2004-09-28 16:18:12


I wrote:
> template <typename Tag1, typename Tag2>
> struct NUMERIC_OP_IMPL
> {
> template <typename N1, typename N2>
> struct apply
> {
> BOOST_STATIC_CONSTANT(
> bool,
> cond =
> BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag1)
>
> BOOST_MPL_AUX_NESTED_VALUE_WKND(int, Tag2)
> );
> typedef typename
> eval_if_c<
> cond,
> identity<N1>,
> apply_wrap1<
> BOOST_MPL_AUX_NUMERIC_CAST<
> Tag1,Tag2
> >,
> N1
> >
> >::type
> n_1;
> typedef typename
> eval_if_c<
> cond,
> apply_wrap1<
> BOOST_MPL_AUX_NUMERIC_CAST<
> Tag1,Tag2

Should be Tag2,Tag1

> >,
> N2
> >,
> identity<N2>
> >::type
> n_2;
> typedef typename
> apply_wrap2<
> NUMERIC_OP_IMPL<
> typename n_1::tag,
> typename n_2::tag
> >,
> n_1,
> n_2
> >::type
> type;
> };
> };

Is <boost/mpl/aux_/numeric_op.hpp> the right file to
patch for this particular problem? The header files
in the boost/mpl/aux_/preprocessed/gcc/ directory say
"DO NOT MODIFY". Are they (the numeric ops)
pregenerated from this file?

If so, I've attached the diff to this message.

                              Cromwell Enage

                
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk