$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.