Boost logo

Boost :

Subject: Re: [boost] float_mem_cast
From: Steven Ross (spreadsort_at_[hidden])
Date: 2009-06-01 12:55:21


Sure, I'll create docs for it. I'm not sure how to test it, besides the
tests that already exist for float_sort (which require it to work
correctly).
I didn't even write the current (functional) implementation of this cast;
I'll make sure to attribute it to the author.

On Mon, Jun 1, 2009 at 5:29 AM, Paul A. Bristow <pbristow_at_[hidden]>wrote:

> > -----Original Message-----
> > From: boost-bounces_at_[hidden] [mailto:
> boost-bounces_at_[hidden]]
> On
> > Behalf Of Steven Watanabe
> > Sent: 26 May 2009 21:26
> > To: boost_at_[hidden]
> > Subject: Re: [boost] float_mem_cast
> >
> > AMDG
> >
> > Steven Ross wrote:
> > > My samples use the typecast because it's necessary when sorting on a
> > > floating point key that isn't identical to the data type (such as key
> plus
> > > data sorting); should they use it from the detail namespace? If that's
> > > reasonable, then I'll move it.
> > >
> >
> > Nevermind what I said. I didn't understand that users would need to
> > call the function.
> > Just leave it in spreadsort.hpp.
>
> This would indeed seem to quite widely useful - but if you just leave it
> there, how will anyone find it?
>
> It really would be much more useful and discoverable with some docs and
> tests however minor, even if it stays in spreadsort.hpp?
>
> Paul
>
>
> ---
> Paul A. Bristow
> Prizet Farmhouse
> Kendal, UK LA8 8AB
> +44 1539 561830, mobile +44 7714330204
> pbristow_at_[hidden]
>
>
>
> _______________________________________________
> 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