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 13:06:45


#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 viboes):

 Replying to [comment:8 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
> }}}

 I didn't said that it would be simple ;-)

 You would need to add some specific overloads when rvalue references are
 not supported by the compiler :(

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9058#comment:9>
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