
9 Mar
2007
9 Mar
'07
8:49 p.m.
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.