From 2e4ed0ff1c6df1a01584af23c7fc765e4356a969 Mon Sep 17 00:00:00 2001 From: Ulrich Dorsch Date: Mon, 6 Oct 2025 08:56:56 +0200 Subject: [PATCH] Fix T.65: retrieve copy_trait tag in code example For the tag dispatch to work it is vital to actually use copy_trait's tag. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 5ea72070c..ef1930036 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -18461,7 +18461,7 @@ This is a simplified version of `std::copy` (ignoring the possibility of non-con template Out copy(Iter first, Iter last, Iter out) { - using tag_type = typename copy_trait>; + using tag_type = typename copy_trait>::tag; return copy_helper(first, last, out, tag_type{}) }