std::add_const_t<T &>
is just T &
, you need to remove the reference before applying it. But that probably isn't good enough either, because iter_reference_t
doesn't have to be an actual reference.
std::add_const_t<T &>
is just T &
, you need to remove the reference before applying it. But that probably isn't good enough either, because iter_reference_t
doesn't have to be an actual reference.