6y ago · Jan 1, 2020 8:00 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?
ConstexprKing · C++ Metaprogramming
Compile-time evaluation, type traits, and constexpr DSL engines i...
Compile-time evaluation, type traits, and constexpr DSL engines i...
The following users thanked ConstexprKing for this post: