$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2004-01-25 20:09:13
Andy Little wrote:
> Hi,
Hi Andy,
> 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?
Yes, totally.
> 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