Boost logo

Boost :

From: Gabriel Dos Reis (Gabriel.Dos-Reis_at_[hidden])
Date: 2001-01-24 07:38:47


"Moore, Paul" <paul.moore_at_[hidden]> writes:

[...]

| More importantly, the impression I get is that too many compilers are broken
| with respect to the using statement at [1]. Either they don't put abs() into
| std::, or (gcc) they ignore using statements at function scope.

Which version of GCC ignores usingd-declaration at function scope?

It is well known that GCC-2.95.x's implementation of the standard
library is a masquarad as it doesn't really put its library in std::.
However for that series, saying `using std::abs' effectivelly brings
the corresponding function (::abs) into scope.

| .... There's also
| the question of whether std::abs() is available for all built-in types. The
| standard only mandates std::abs(int) and std::abs(long) - while I can't see

`int' are designed to be C++'s primary choices for integer types.
'char' and variants are best thought of as character types and should
not serve for airthmetics -- even if in Standardese they are called
arithmetic types. And they don't play very well with arithmetics.

-- Gaby


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk