
8 May
2009
8 May
'09
8 p.m.
On Fri, May 8, 2009 at 10:33 AM, Ross Levine <ross.levine@uky.edu> 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.