mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed mocking of a function returning a reference for gcc 4.1
This commit is contained in:
parent
39e77bb49b
commit
c847c85a77
2 changed files with 8 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ namespace detail
|
|||
return static_cast< value_imp< T >& >( *v_ ).t_;
|
||||
}
|
||||
template< typename T >
|
||||
Result& store( T* t )
|
||||
typename boost::remove_reference< Result >::type& store( T* t )
|
||||
{
|
||||
v_.reset( new value_imp< Result >( t ) );
|
||||
return static_cast< value_imp< Result >& >( *v_ ).t_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue