Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenvp committed May 1, 2017
1 parent f315ff0 commit 02a5d6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/src/test_function.cpp
Expand Up @@ -518,8 +518,10 @@ TEST(test_function, bind_member_variable_2)
{
dummy d;

// Explanation of the double call operator:
// http://stackoverflow.com/a/43716824/1717320
auto b = std::bind(&dummy::member, &d);
b();
b()();

EXPECT_TRUE(d.member.expect_calls().with().to_bool());
}

0 comments on commit 02a5d6c

Please sign in to comment.