This pull request adds move semantics support to avoid unnecessary 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. It also adds a
test case for lambda with init capture and movable(but not copyable)
object.
Hi,
This pull request adds move semantics support to avoid unnecessary 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. It also adds a test case for lambda with init capture and movable(but not copyable) object.Before this:
Output: