Skip to content

Commit

Permalink
Merge pull request #27 from OlivierLDff/fix-readme-1
Browse files Browse the repository at this point in the history
πŸ“ fix documentation to be a compilable example
  • Loading branch information
palacaze authored Aug 9, 2021
2 parents c3b257a + ba22e13 commit c86414a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

Expand Down

0 comments on commit c86414a

Please # to comment.