[thread][VS2010] shared_mutex woo's

This: #include <boost/thread.hpp> int main() { boost::shared_mutex mtx; boost::upgrade_lock<boost::shared_mutex> l(mtx); boost::upgrade_to_unique_lock<boost::shared_mutex> ul(l); return 0; } still fails on VC21010. Defining BOOST_NO_RVALUE_REFERENCES makes this compile, though. Regards Hartmut --------------- Meet me at BoostCon www.boostcon.com

On Sat, Jul 3, 2010 at 7:32 PM, Hartmut Kaiser <hartmut.kaiser@gmail.com>wrote:
This:
#include <boost/thread.hpp>
int main() { boost::shared_mutex mtx; boost::upgrade_lock<boost::shared_mutex> l(mtx); boost::upgrade_to_unique_lock<boost::shared_mutex> ul(l);
return 0; }
still fails on VC21010. Defining BOOST_NO_RVALUE_REFERENCES makes this compile, though.
I mentioned it two weeks ago: http://thread.gmane.org/gmane.comp.lib.boost.user/59072/focus=59493 The patch is also attached.

This:
#include <boost/thread.hpp>
int main() { boost::shared_mutex mtx; boost::upgrade_lock<boost::shared_mutex> l(mtx); boost::upgrade_to_unique_lock<boost::shared_mutex> ul(l);
return 0; }
still fails on VC21010. Defining BOOST_NO_RVALUE_REFERENCES makes this compile, though.
I mentioned it two weeks ago: http://thread.gmane.org/gmane.comp.lib.boost.user/59072/focus=59493 The patch is also attached.
Ping? Can this be fixed before release, pls? Regards Hartmut --------------- Meet me at BoostCon www.boostcon.com

On Sun, 2010-07-04 at 20:28 +0400, Sergei Politov wrote:
On Sat, Jul 3, 2010 at 7:32 PM, Hartmut Kaiser <hartmut.kaiser@gmail.com>wrote:
This:
#include <boost/thread.hpp>
int main() { boost::shared_mutex mtx; boost::upgrade_lock<boost::shared_mutex> l(mtx); boost::upgrade_to_unique_lock<boost::shared_mutex> ul(l);
return 0; }
still fails on VC21010. Defining BOOST_NO_RVALUE_REFERENCES makes this compile, though.
I mentioned it two weeks ago: http://thread.gmane.org/gmane.comp.lib.boost.user/59072/focus=59493 The patch is also attached.
... And I reopened https://svn.boost.org/trac/boost/ticket/2501 in response to this. -- Braden McDaniel <braden@endoframe.com>
participants (3)
-
Braden McDaniel
-
Hartmut Kaiser
-
Sergei Politov