From a102f15e7a98a810df4ff4c6bd479bb21deed9f5 Mon Sep 17 00:00:00 2001 From: Ulrich Dorsch Date: Wed, 3 Dec 2025 20:54:17 +0100 Subject: [PATCH] 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. --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index bbe0e68..473b7d9 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{}) }