mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed move in actions for gcc
This commit is contained in:
parent
35b4f570ae
commit
caef00d2e3
2 changed files with 9 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue