|
Boost : |
Subject: Re: [boost] [swap] please update documentation with the header I need to include
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-06-29 05:17:20
Peter Simons skrev:
> Hi Niels,
>
> > [It's] not recommended to do an unqualified call to boost::swap:
> >
> > std::string a1[42];
> > std::string a2[42];
> >
> > boost::swap(a1, a2); // Okay.
> >
> > using boost::swap;
> > swap(a1, a2); // Does not compile!
>
> why do you think this code won't compile?
Maybe the call to swap is ambigious in this case. It could be either
boost::swap or std::swap.
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk