forked from TheWisp/signals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy lvalues instead of referencing them
signal::connect has been reworked. It now does one of the following 3: * Stores a function pointer if the callable can be converted to one * Constructs the callable in the pointer's memory via perfect forwarding * Constructs the callable on the heap via perfect forwarding One relevant test in main.cpp has been updated, and a memory leak in another test was fixed. Fixes TheWisp#20
- Loading branch information
1 parent
7ff59d1
commit 072b48b
Showing
2 changed files
with
23 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters