Phew, having to use reference_wrapper sucked. I hope this will be a bit more ergonomic.
This allows to use methods of optional (c++23 added a couple of nice ones), as opposed to raw pointer.
It seems to be obvious, but there is no mention of it in the discussion behind the link.
Phew, having to use reference_wrapper sucked. I hope this will be a bit more ergonomic.