Change all decay to remove_cvref.

This commit is contained in:
hazby2002
2023-12-29 17:05:16 +08:00
parent 38783b8907
commit 2d45ddfdc8
62 changed files with 409 additions and 394 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ namespace internal {
template <class T>
constexpr auto to_ptr_tuple(T& _t) {
if constexpr (std::is_pointer_v<std::decay_t<T>>) {
if constexpr (std::is_pointer_v<std::remove_cvref_t<T>>) {
return to_ptr_tuple(*_t);
} else {
return bind_to_tuple(_t, [](auto&& x) {