Boost logo

Boost Users :

From: Pavol Droba (droba_at_[hidden])
Date: 2007-03-09 14:18:16


Hi,

It is not and it has never been there. I assume, that in your
example argument dependent lookup took a place.

Since boost::array is in the boost namespace, this namespace is also
searched when you use unqualified call to equals.

And equals as well as many other algorithms is pulled to boost namespace
via "using" directive. Therefore it is found.

Best regards,
Pavol.

Olaf van der Spek wrote:
> 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;
> }
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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