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.
master
Ulrich Dorsch 4 weeks ago committed by GitHub
parent 4e1e155fc4
commit a102f15e7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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{})
}

Loading…
Cancel
Save