This is the mail archive of the
mailing list for the libstdc++ project.
Re: abs function question
Nathan Myers <email@example.com> writes:
| On Tue, Jul 29, 2003 at 06:39:30AM +0200, Gabriel Dos Reis wrote:
| > Steve Ellcey <firstname.lastname@example.org> writes:
| > | I am currently running into a problem with the function abs and the
| > | header std_cstdlib.h.
| > Huh!? How can an inline definition could possibly clash with a using
| > declaration? Some piece of information is missing. Could tell us
| > more about that inline declaration?
| I think he's saying that if __cplusplus is defined, no abs is declared
| at all,
How do you read that from
The problem is that my system's stdlib.h header file is smart enough to
not do an extern declaration for abs if it is in C++ mode and *instead
does an inline declaration of the abs function*.
(emphasis is mine)