mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Documented use of C++11 lambdas as actions
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@619 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
8a6e38a642
commit
c5861a744d
1 changed files with 1 additions and 0 deletions
|
|
@ -671,6 +671,7 @@ Example :
|
|||
MOCK_EXPECT( c.method ).throws( std::runtime_error( "error !" ) );
|
||||
MOCK_EXPECT( c.method ).calls( &function ); // forwards 'method' parameter to 'function'
|
||||
MOCK_EXPECT( c.method ).calls( boost::bind( &function, 42 ) ); // drops 'method' parameter and binds 42 as parameter to 'function'
|
||||
MOCK_EXPECT( c.method ).calls( []( int i ) { return i; } ); // uses a C++11 lambda
|
||||
}
|
||||
|
||||
[endsect]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue