-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use forwarding reference in make_visitor and visitor
It avoids internal copies of closures passed to make_visitor and it permits the usage of init capture(feature of C++14) to use movable only types. - Add test case for lambda with init capture and movable(but not copyable) object - Add test case for match() receiving a lvalue reference to a lambda.
- Loading branch information
1 parent
266f68d
commit 9f991da
Showing
2 changed files
with
57 additions
and
7 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