From 350fe39324e2b37bb671357d7d7725318ebab925 Mon Sep 17 00:00:00 2001 From: Flamefire Date: Thu, 15 Nov 2018 18:59:37 +0100 Subject: [PATCH] Don't use std::move --- include/turtle/detail/action.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/turtle/detail/action.hpp b/include/turtle/detail/action.hpp index ed055d2..b201cd9 100644 --- a/include/turtle/detail/action.hpp +++ b/include/turtle/detail/action.hpp @@ -109,17 +109,16 @@ namespace detail { this->set( boost::bind( - &move< Value >, + &move< typename boost::remove_reference< Value >::type >, boost::ref( store( boost::move( v ) ) ) ) ); } private: - template< typename T > - static T&& move( T& t ) + template< typename Value > + static BOOST_RV_REF(Value) move( Value& t ) { - return std::move( t ); + return boost::move( t ); } - struct value : boost::noncopyable { virtual ~value()