Topic: Defect report: qsort & POD


Author: Ray Lischner <dontspamme@spam.you>
Date: 23 Apr 03 10:27:14 GMT
Raw View
 [Moderator's note: this defect report has been
 forwarded to the C++ committee. -moderator.]

Section 25.4 (C Library Algorithms) [lib.alg.c.library] describes bsearch
and qsort, from the C standard library. Paragraph 4 does not list any
restrictions on qsort, but it should limit the base parameter to point to POD.
Presumably, qsort sorts the array by copying bytes, which requires POD.
--
Ray Lischner, author of C++ in a Nutshell (forthcoming)
http://www.tempest-sw.com/cpp/
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]