This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: <math.h>


Magnus Fromreide <magfr@lysator.liu.se> writes:

| According to 26.5p5 <cmath> contains, among other, the function
|   double std::abs(double)

Right.

| D.5p2:
| Each C header, whose name has the form name.h, behaves as if each name
| placed in the Standard library namespace by the corresponding cname is
| also placed within the namespace scope of the namespace std and is
| followed by an explicit using-declaration (7.3.3)
| 
| Does this, taken together, imply that the call to abs in the program below
| calls std::abs(double) ?

No.

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]