Boost Users :
From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-01-25 20:09:13
Andy Little wrote:
> 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?
If you contribute an implementation for it, I'd be happy to put the
metafunction in the library.
-- Aleksey Gurtovoy MetaCommunications Engineering
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net