Boost logo

Boost :

Subject: Re: [boost] float_mem_cast
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2009-06-01 08:29:39


> -----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]

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