boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
96 stars 116 forks source link

Tree-based containers have troubles with move-only types #152

Closed ImplOfAnImpl closed 3 years ago

ImplOfAnImpl commented 3 years ago

This issue has been reported a couple of years ago here and a fix had been proposed. In short, the following won't compile:

#include <boost/container/set.hpp>
#include <memory>

int main()
{
    boost::container::set<std::unique_ptr<int>> set1, set2;
    set2 = std::move(set1);
}

I'm not sure why it's being ignored, probably it's because the svn tracker is dead? Anyway, I'm re-reporting it here, just in case.

igaztanaga commented 3 years ago

You are right, the svn tracker is dead, and the bug is certainly important. Many thanks for the report!