29 Mar
2017
29 Mar
'17
1:28 p.m.
AMDG On 03/29/2017 07:07 AM, Christopher Pisz via Boost-users wrote:
If I change it to std::function
callback = ... then the connection is not passed.
Yes it is. The connection is stored inside the std::function.
If it is not passed, then there is no way to store it, change its state, etc. It is passed in the tutorial code, so why can't I pass it with std::function?
In Christ, Steven Watanabe