Boost logo

Boost Users :

From: Andy Little (andy_at_[hidden])
Date: 2004-01-25 03:57:59

I am implementing the mpl math operators for my physical_quantities type.
Ideally I would like to declare a boost::mpl::power<A,B> metafunction. I
would like to do:

        typedef Power_type<...> P ;
        pq_xx a;

        boost::mpl::power< pq_xx, P >::type b = run_time_power<P>( a);

       OTOH: boost::mpl::power< P, pq_xx >::type b =
run_time_power<P>( a);
         (param order ... TBD)

I am assuming it is ok to specialise plus, minus, multiplies etc in the
boost::mpl namespace? I could of course put power (or whatever name) outside
the boost::mpl namespace but that is not ideal. Any thoughts?

Andy Little

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at