Skip to content

Commit a102f15

Browse files
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.
1 parent 4e1e155 commit a102f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CppCoreGuidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18461,7 +18461,7 @@ This is a simplified version of `std::copy` (ignoring the possibility of non-con
1846118461
template<class Iter>
1846218462
Out copy(Iter first, Iter last, Iter out)
1846318463
{
18464-
using tag_type = typename copy_trait<std::iter_value_t<Iter>>;
18464+
using tag_type = typename copy_trait<std::iter_value_t<Iter>>::tag;
1846518465
return copy_helper(first, last, out, tag_type{})
1846618466
}
1846718467

0 commit comments

Comments
 (0)