Boost logo

Boost :

Subject: Re: [boost] Review Request: Algorithm.Sorting
From: Steven Ross (spreadsort_at_[hidden])
Date: 2009-05-08 16:00:54


On Fri, May 8, 2009 at 10:33 AM, Ross Levine <ross.levine_at_[hidden]> wrote:

> Maybe instead of a static assert, do some sort of conditional compilation
> or
> template metaprogramming, such that if
> std::numeric_limits<Data_type>::is_iec559 is false, it just defaults to
> std::sort? That would be more cross-platform.

The user might accidentally pass the wrong argument, and think they're using
float_sort, but they'd just be using std::sort. I consider that a more
common usage case than a non-standard float implementation, and even with a
non-standard float the user has the option of using std::sort themselves.


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