|
Boost Users : |
From: bryane (ewbank_at_[hidden])
Date: 2007-03-09 15:49:49
Olaf van der Spek <olafvdspek <at> gmail.com> writes:
>
> Hi,
>
> Why is equals() in the top namespace in 1.33.1?
>
> #include <boost/algorithm/string.hpp>
> #include <boost/array.hpp>
>
> int main()
> {
> boost::array<char, 4> a = { 1, 2, 3, 4 };
> equals(a, a);
> return 0;
> }
>
To determine if it /really/ is the top namespace, use
::equals(a,a);
This should be rejected, since it blocks the normal name lookup rules.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net