4 ms·
You can create a trivial wrapper: https://godbolt.org/z/c5YeP6feG The usual issue with these sort of things is that they are not idiomatic (but then again,
by gpderetta 5y ago
You can create a trivial wrapper:
https://godbolt.org/z/c5YeP6feG
The usual issue with these sort of things is that they are not idiomatic (but then again, there is no single idiomatic C++).
edit: std::reference_wrapper is of course the standard blessed way to do this, but still not idiomatic.