Closed Ukilele closed 4 months ago
Due to https://wg21.link/p2266, the function tc::as_lvalue is (will be) ill-formed in C++23 mode. See also: https://eel.is/c++draft/diff.cpp20.expr#1. Adding the static_cast<T&> fixes it.
tc::as_lvalue
static_cast<T&>
Thanks for the PR! I've noticed that issue a couple of months ago myself and fixed it already in our codebase. I've just exported our internal changes, which include the same fix. But very good catch. :)
Due to https://wg21.link/p2266, the function
tc::as_lvalue
is (will be) ill-formed in C++23 mode. See also: https://eel.is/c++draft/diff.cpp20.expr#1. Adding thestatic_cast<T&>
fixes it.