Fixed move in actions for gcc

This commit is contained in:
Mathieu Champlon 2018-03-29 15:10:42 +02:00 committed by Mathieu Champlon
parent 35b4f570ae
commit caef00d2e3
2 changed files with 9 additions and 3 deletions

View file

@ -109,11 +109,17 @@ namespace detail
{
this->set(
boost::bind(
&boost::move< BOOST_RV_REF(Value) >,
&move< Value >,
boost::ref( store( boost::move( v ) ) ) ) );
}
private:
template< typename T >
static T&& move( T& t )
{
return std::move( t );
}
struct value : boost::noncopyable
{
virtual ~value()

View file

@ -183,9 +183,9 @@ namespace detail
this->e_->throws( t );
}
template< typename TT >
void moves( TT t )
void moves( BOOST_RV_REF(TT) t )
{
this->e_->moves( t );
this->e_->moves( boost::move( t ) );
}
lock lock_;