mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Use std::reference_wrapper instead of boost
This commit is contained in:
parent
353849e9ad
commit
35e43d58a6
16 changed files with 116 additions and 90 deletions
|
|
@ -740,7 +740,7 @@ BOOST_AUTO_TEST_CASE( demonstrates_configuring_actions_with_references )
|
|||
{
|
||||
mock_class c;
|
||||
int i = 0;
|
||||
MOCK_EXPECT( c.method ).returns( boost::ref( i ) ); // wrap i to store a reference
|
||||
MOCK_EXPECT( c.method ).returns( std::ref( i ) ); // wrap i to store a reference
|
||||
c.method() = 42; // really change i and not just the stored copy
|
||||
BOOST_CHECK_EQUAL( 42, i ); // indeed
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue