2 ms·
Then you can create a struct Die and change die to return that. By implementing callAsFunction you keep the same interface as before so existing callers don't b
by edflsafoiewq 7y ago
Then you can create a struct Die and change die to return that. By implementing callAsFunction you keep the same interface as before so existing callers don't break.
- jayd16 7y agoAha ok. This makes far more sense actually. Its a refactor tool for replacing lambdas with callable objects. But does it really work out? Surely you can't put these new structs into the same arrays as similar lambdas, can you?