|
Boost : |
Subject: Re: [boost] [Containers Review Result] Boost.Containers is accepted into Boost.
From: Pierre Morcello (pmorcell-cppfrance_at_[hidden])
Date: 2011-08-28 18:06:52
Hi,
>>Pierre Morcello escribió: I was waiting for you to correct the bug
>Ion Gaztañaga wrote : Please try trunk code and let me know if you are
happy.
1/ This works, you did it !
2/ But I got another compilation error on almost the same case, if I use
std::swap instead of defining swap :
#include <boost/container/vector.hpp>
class swapOnly2
{
public:
swapOnly2():i(0){}
private:
int i;
swapOnly2(const swapOnly2&);
swapOnly2& operator=(const swapOnly2&);
};
namespace std
{
template <>
void swap( swapOnly2& a, swapOnly2& b )
{
std::swap(a.i, b.i);
}
}
int main()
{
boost::container::vector< swapOnly2 > swapOnlys(3);
return 0;
}
This does not compile. Is this the correct behaviour? Did I miss something?
Best regards,
Pierre Morcello
-- View this message in context: http://boost.2283326.n4.nabble.com/Containers-Review-Result-Boost-Containers-is-accepted-into-Boost-tp3760555p3775072.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk