------- Comment #6 from paolo dot carlini at oracle dot com 2010-05-31 01:24 ------- ... and I think the correct way to achieve what you want now would be:
std::set<std::weak_ptr<int>, std::owner_less<std::weak_ptr<int>>> wStdSet; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44339