Re: [Boost-bugs] [Boost C++ Libraries] #9058: with_lock_guard function

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9058: with_lock_guard function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-31 12:21:22


#9058: with_lock_guard function
-------------------------------+----------------------
  Reporter: ruslan_baratov@… | Owner: viboes
      Type: Feature Requests | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.54.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by ruslan_baratov@…):

 Replying to [comment:7 viboes]:
> Func could also be Movable.
 Not working for g++ without c++11 support (can't bind simple function):

 {{{
 with_lock_guard_usage.cpp:42:44: error:
 no matching function for call to 'with_lock_guard(boost::mutex&, void
 (&)())'
 }}}

 clang without c++11 support refuse to work with boost::bind
 {{{
 boost/bind/mem_fn_template.hpp:151:29: error:
 call to pointer to member function of type 'int (int &)' drops 'const'
 qualifier
 }}}

>
> Could you add some test with movable only types?
 Ok.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9058#comment:8>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC