abs function question

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Jul 29 06:00:00 GMT 2003


Nathan Myers <ncm-nospam@cantrip.org> writes:

| On Tue, Jul 29, 2003 at 06:39:30AM +0200, Gabriel Dos Reis wrote:
| > Steve Ellcey <sje@cup.hp.com> 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)

-- Gaby



More information about the Libstdc++ mailing list