Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-11-16 20:53:01

"Stephan T. Lavavej" <stl_at_[hidden]> writes:

> [Stephan T. Lavavej]
>> #pragma GCC system_header
> [David Abrahams]

>> I'm still not comfortable with -Wshadow:
>> Maybe the problem is limited because we don't have many globals; I'm
>> not sure.
> So far I haven't observed any instances of such shadowing, though I'm far
> from using all of Boost.
> I would argue that globally visible things should have names which are hard
> to clash with; naming a global "first" or "size" would be bad.

Here's another case:

    namespace boost // library 1
      namespace detail{
      int foo;
      using detail::foo;

    namespace boost // library 2
      char* bar(int foo) {}


Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at