From 0d52387340d496bc9bd62f122bc44923e1ec2363 Mon Sep 17 00:00:00 2001 From: Alex Dutka <97711898+dutkalex@users.noreply.github.com> Date: Wed, 16 Oct 2024 00:28:42 +0200 Subject: [PATCH] Silence -Wdeprecated-this-capture warning --- include/GUnit/GMock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: