diff --git a/src/libraries/turtle/action.hpp b/src/libraries/turtle/action.hpp index 09656a4..aa8667a 100644 --- a/src/libraries/turtle/action.hpp +++ b/src/libraries/turtle/action.hpp @@ -44,7 +44,7 @@ namespace detail f_ = lambda_type::make_val( boost::ref( *r_ ) ); } template< typename Y > - void returns( const boost::reference_wrapper< Y >& r ) + void returns( boost::reference_wrapper< Y > r ) { f_ = lambda_type::make_val( r ); } @@ -86,7 +86,7 @@ namespace detail f_ = lambda_type::make_val( r ); } template< typename Y > - void returns( const boost::reference_wrapper< Y >& r ) + void returns( boost::reference_wrapper< Y > r ) { f_ = lambda_type::make_val( r ); } @@ -201,7 +201,7 @@ namespace detail f_ = lambda_type::make_val( boost::ref( r_ ) ); } template< typename Y > - void set( const boost::reference_wrapper< Y >& r ) + void set( boost::reference_wrapper< Y > r ) { f_ = lambda_type::make_val( r ); r_.reset(); diff --git a/src/libraries/turtle/log.hpp b/src/libraries/turtle/log.hpp index bb4b606..c209b75 100644 --- a/src/libraries/turtle/log.hpp +++ b/src/libraries/turtle/log.hpp @@ -264,8 +264,7 @@ namespace detail return s; } template< typename T > - stream& operator<<( stream& s, - const boost::reference_wrapper< T >& t ) + stream& operator<<( stream& s, boost::reference_wrapper< T > t ) { return s << mock::format( t.get() ); }