On 07/31/2017 12:27 PM, Alexander Monakov wrote: > On Mon, 31 Jul 2017, Jeff Law wrote: >> I must have missed something. Can't you just define >> >> qsort (BASE, NMEMB, SIZE, COMPARE) into >> >> qsort_chk (BASE, NMEMB, SIZE, COMPARE) >> >> That shouldn't affect the qsort from vec? Right? Or am I missing something > > If you do > > #define qsort(base, n, sz, cmp) qsort_chk (base, n, sz, cmp) > > then all invocations of vec::qsort, i.e. > > myvec.qsort (mycmp); > > will yield a preprocessing error due to wrong number of arguments supplied > to the qsort macro (one instead of four). Duh. Hit me with a clue stick. I guess I have to get familiar with the macro argument counting trick :-)
jeff