From ba22e13515fcd9ded4138312dc5c17b71a329624 Mon Sep 17 00:00:00 2001 From: Olivier LDff Date: Mon, 9 Aug 2021 22:54:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20fix=20documentation=20to=20be=20?= =?UTF-8?q?a=20compilable=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 4562f82..34e3b25 100644 --- a/readme.md +++ b/readme.md @@ -499,13 +499,13 @@ int main() { // Lifetime of object instance p is tracked s p; s_mt pm; - sig.connect(&s::f, p); - sig.connect(&s_mt::f, pm); + sig.connect(&s::f, &p); + sig.connect(&s_mt::f, &pm); sig(1); // sum == 2 } // The slots got disconnected at instance destruction - sig(1); // sum == 1 + sig(1); // sum == 2 } ```