abs/fabs/labs not builtin in C++

Joe Buck jbuck@synopsys.com
Wed Dec 10 10:58:00 GMT 1997


> Why are abs, labs and fabs not builtins in C++?  A comment in cp/decl.c
> claims they don't work with libg++, but i could not find any problems
> after enabling them, and libg++ is obsolete anyway.

If this is done, we need to make sure to provide all the proper overloads.
Essentially there should be an abs() for every builtin numeric type.



More information about the Gcc mailing list