17 Mar
2015
17 Mar
'15
10:52 p.m.
[Steven Watanabe]
So is it more important to match std::function or to avoid breaking existing code?
That's your call. Over in the Standard Library, I ruthlessly deliver conformance and breaking changes (especially at compile-time like this). Note that this affects signatures like function<void (unique_ptr<int>)>, which work for std::function. In general, my motto is that INVOKE is scary, so I should do exactly what it says, so INVOKE gets all the blame if users are unhappy. (It's actually well-designed, just deeply scary.) STL