This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
abs(int)
- From: Levente Farkas <lfarkas at mindmaker dot hu>
- To: STDC++ <libstdc++ at sources dot redhat dot com>
- Date: Mon, 19 Nov 2001 16:41:47 +0100
- Subject: abs(int)
- Organization: Mindmaker Ltd.
- Reply-to: lfarkas at mindmaker dot hu
hi,
I try to figure out from the standard but it's not clear to me.
int abs(int) have to be defined in namespace std or not? untill now
I suppose I can use std::abs(x) for all type of x (all buildin type:-)
but may be I can do it float, double, long...except int?
anyway stdc++ doesn't put abs(int) in namespace std.
-- Levente "Si vis pacem para bellum!"