4 ms·
You didn't pass a function to std::cout, you called it and passed its return value.
by black-tea 8y ago
You didn't pass a function to std::cout, you called it and passed its return value.
- grandmczeb 8y agoThe way I interpret the GP, they're talking about passing closures as a function argument. In the example I pass func (a closure) to pass_func. Not sure what std::cout has to do with it?
- black-tea 8y agoSorry, I misread the code.