Boost logo

Boost :

From: Peder Holt (peder.holt_at_[hidden])
Date: 2005-06-08 11:12:26


On 6/8/05, Sérgio Vale e Pace <svpace.forum_at_[hidden]> wrote:
> I can say for everyone else, but I am very interested, but IFAIK there
> is a current development in this area on mpl, but I can be wrong, but
> yor code looks promissing. how well does it integrate with other mpl
> stuff?

Haven't done any work to integrate it with the rest of mpl, but It should be
fairly straight forward.

>
> On 6/8/05, Peder Holt <peder.holt_at_[hidden]> wrote:
> > Is there any interest in a compile-time meta-version of double?
> >
> > Syntax:
> >
> > //Definition
> > typedef META_DOUBLE(3.1415926535897932384626433) pi;
> > //Or
> > META_DOUBLE(3.1415926535897932384626433) pi_;
> >
> > //Mathematical operations
> > typedef math::meta::add<pi,pi>::type pi2;
> >
> > //Evaluation:
> > assert(META_DOUBLE_EVAL(pi2)==3.1415926535897932384626433*2);
> >
> > This implementation uses two ints to represent the decimals, and a
> > short to represent the exponent.
> >
> > It has been tested on VC7.1,VC8.0 beta and GCC3.2
> >
> > Regards,
> > Peder
> >
> > _______________________________________________
> > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
> >
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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