mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 18:56:19 +08:00
Change all decay to remove_cvref.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user