TMath::Sort :: warning if n < array size

From: Adrian Sevcenco <Adrian.Sevcenco_at_cern.ch>
Date: Sun, 21 Aug 2011 02:29:37 +0300


Hi! I was wondering if would be useful (for me it would because i just had some headaches because of this) to have a warning in case that either (this arguments related to [1]):
1. n < sizeof(index)/sizeof(index[0])
or
2. sizeof(index) < sizeof(a)

and definitely an error (if it is needed..) for n > sizeof(a)

Thanks,
Adrian

[1]. http://root.cern.ch/root/html/src/TMath.h.html#YYNCbB

Received on Sun Aug 21 2011 - 01:28:42 CEST

This archive was generated by hypermail 2.2.0 : Sun Aug 21 2011 - 17:50:01 CEST