Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot add more than one listener if its expressed as a lambda #95
I noticed this while implementing the framework listeners; doing the following does not add the second listener:
The same happens when adding bundle listeners.
For users, it is normal to express std::function objects as lambdas and expect this to work.
It is difficult to compare the equality of std::function objects as evidenced by this stackoverflow thread.
Some more info from further investigation...
The only reason listeners created from