Fix T.65: retrieve copy_trait tag in code example (#2291)

For the tag dispatch to work it is vital to actually use copy_trait's tag.
This commit is contained in:
Ulrich Dorsch
2025-12-03 20:54:17 +01:00
committed by GitHub
parent 4e1e155fc4
commit a102f15e7a

View File

@@ -18461,7 +18461,7 @@ This is a simplified version of `std::copy` (ignoring the possibility of non-con
template<class Iter>
Out copy(Iter first, Iter last, Iter out)
{
using tag_type = typename copy_trait<std::iter_value_t<Iter>>;
using tag_type = typename copy_trait<std::iter_value_t<Iter>>::tag;
return copy_helper(first, last, out, tag_type{})
}