Hi Mats,
I little confused even if I agree with you. Looks like we are talking about template function will degrade performance compared with pure C implementation of qsort(), but you are talking template function could improve performance by inline some code like compare for POD types?
regards,
George