mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Clean-up
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@130 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
f02dd801b5
commit
d327700205
1 changed files with 9 additions and 9 deletions
|
|
@ -34,10 +34,10 @@ namespace detail
|
||||||
: c1_( c1 )
|
: c1_( c1 )
|
||||||
, c2_( c2 )
|
, c2_( c2 )
|
||||||
{}
|
{}
|
||||||
template< typename Y >
|
template< typename Actual >
|
||||||
bool operator()( const Y& y ) const
|
bool operator()( const Actual& actual ) const
|
||||||
{
|
{
|
||||||
return c1_( y ) && c2_( y );
|
return c1_( actual ) && c2_( actual );
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
Constraint1 c1_;
|
Constraint1 c1_;
|
||||||
|
|
@ -52,10 +52,10 @@ namespace detail
|
||||||
: c1_( c1 )
|
: c1_( c1 )
|
||||||
, c2_( c2 )
|
, c2_( c2 )
|
||||||
{}
|
{}
|
||||||
template< typename Y >
|
template< typename Actual >
|
||||||
bool operator()( const Y& y ) const
|
bool operator()( const Actual& actual ) const
|
||||||
{
|
{
|
||||||
return c1_( y ) || c2_( y );
|
return c1_( actual ) || c2_( actual );
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
Constraint1 c1_;
|
Constraint1 c1_;
|
||||||
|
|
@ -69,10 +69,10 @@ namespace detail
|
||||||
explicit not_( const Constraint& c )
|
explicit not_( const Constraint& c )
|
||||||
: c_( c )
|
: c_( c )
|
||||||
{}
|
{}
|
||||||
template< typename Y >
|
template< typename Actual >
|
||||||
bool operator()( const Y& y ) const
|
bool operator()( const Actual& actual ) const
|
||||||
{
|
{
|
||||||
return ! c_( y );
|
return ! c_( actual );
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
Constraint c_;
|
Constraint c_;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue