Cleaned code

This commit is contained in:
Mathieu Champlon 2018-01-15 05:23:15 +01:00
parent afffdb470a
commit 15285a22ec
3 changed files with 7 additions and 6 deletions

View file

@ -100,11 +100,11 @@ namespace detail
}
template< typename Value >
void moves( BOOST_RV_REF( Value ) v )
void moves( BOOST_RV_REF(Value) v )
{
this->set(
boost::bind(
&boost::move< BOOST_RV_REF( Value ) >,
&boost::move< BOOST_RV_REF(Value) >,
boost::ref( store( boost::move( v ) ) ) ) );
}
@ -124,7 +124,7 @@ namespace detail
>::type
>::type value_type;
value_imp( BOOST_RV_REF( value_type ) t )
value_imp( BOOST_RV_REF(value_type) t )
: t_( boost::move( t ) )
{}
value_imp( const T& t )
@ -138,7 +138,7 @@ namespace detail
};
template< typename T >
T& store( BOOST_RV_REF( T ) t )
T& store( BOOST_RV_REF(T) t )
{
v_.reset( new value_imp< T >( boost::move( t ) ) );
return static_cast< value_imp< T >& >( *v_ ).t_;

View file

@ -91,7 +91,7 @@ namespace detail
template< typename F,
BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, typename T) >
class multi_matcher< F, void( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) ) >
: public matcher_base< void( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS,T) ) >
: public matcher_base< void( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) ) >
{
public:
multi_matcher( const F& f )
@ -102,7 +102,7 @@ namespace detail
virtual bool operator()(
BOOST_PP_ENUM_BINARY_PARAMS( MOCK_NUM_ARGS, T, a ) )
{
return f_( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, a ) );
return f_( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, a) );
}
virtual void serialize( std::ostream& s ) const
{

View file

@ -144,6 +144,7 @@ namespace detail
BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, c) );
return *this;
}
#if MOCK_NUM_ARGS > 1
template< typename Constraint >
wrapper with( const Constraint& c )