Daily bit(e) of C++ | std::forward_like
Daily bit(e) of C++ #428, Correctly forwarding the value category for a member of a compound type using C++23 std::forward_like.
Correctly forwarding the value category for a member of a compound type before C++23 was cumbersome.
Forunately C++23 introduced the std::forward_like, which makes this operation a lot simpler.
The std::forward_like is also essential when using the "deducing this" feature.