Created on 2003-04-08.00:00:00 last changed 172 months ago
[ Something along these lines is clearly necessary. Matt provided wording. ]
Proposed resolution:
In [alg.c.library] paragraph 4, just after the declarations and before the nonnormative note, add these words: "both of which have the same behavior as the original declaration. The behavior is undefined unless the objects in the array pointed to by base are of POD type."
Section [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.
History | |||
---|---|---|---|
Date | User | Action | Args |
2010-10-21 18:28:33 | admin | set | messages: + msg2508 |
2010-10-21 18:28:33 | admin | set | messages: + msg2507 |
2003-04-08 00:00:00 | admin | create |