diff --git a/include/GUnit/GMock.h b/include/GUnit/GMock.h index 5fd2c32..9d4d134 100644 --- a/include/GUnit/GMock.h +++ b/include/GUnit/GMock.h @@ -305,7 +305,7 @@ class GMock { template void original_defer_call(TArgs... args) { - calls.push_back([=] { original_call(args...); }); + calls.push_back([=, this] { original_call(args...); }); } public: