Boost logo

Boost Users :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2007-03-10 04:28:35


On 3/9/07, Pavol Droba <droba_at_[hidden]> wrote:
> Hi,
>
> It is not and it has never been there. I assume, that in your
> example argument dependent lookup took a place.

You're right. I thought about that later too.
I'm not that familiar with it and it's a bit confusing, especially
with a generic function like equals.

> 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 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