23 Dec
2008
23 Dec
'08
4:42 a.m.
On Mon, Dec 22, 2008 at 21:06, Max
What I need is a template version of abs, not the int abs(int) function, to make use of it genericly.
Do you really need a template of it? I can't see why using ADL wouldn't be enough (with a using declaration for std::abs, to catch the overloads for scalars from <cstdlib> and <cmath>). ~ Scott