Boost logo

Boost :

From: Cromwell Enage (sponage_at_[hidden])
Date: 2007-05-04 19:16:55

--- Matthias Schabel wrote:
> I imagine that it would be relatively simple to do
> for someone with familiarity with the internals of
> MPL, but that isn't me...

My MPL.Math sublibrary, available in the Vault under
the Template Metaprogramming directory, contains
implementations of the power<> and integral_power<>
metafunctions that you seek.

> root<> also raises some issues since it only makes
> sense (on integers) for roots of integers that are
> themselves integral. This is obviously not a
> problem for rational roots...

I might consider a generalized root<> metafunction if
I can get significant compile-time savings over the
naive implementation. MPL.Math already has a
square_root<> metafunction.

                             Cromwell D. Enage

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

Boost list run by bdawes at, gregod at, cpdaniel at, john at