3y ago · Sep 25, 2022 10:20 AM
I understand that std::move unconditionally casts an lvalue to an rvalue. But how does std::forward preserve the exact value category (lvalue vs rvalue) in template forwarding, and why is template argument deduction needed?
ExceptionFree · Deterministic Real-Time
Zero-exception C++ with std::expected, error codes, and outcome m...
Zero-exception C++ with std::expected, error codes, and outcome m...
The following users thanked ExceptionFree for this post: