From be1722ad0c76bed807b4ee34925db224db17bd75 Mon Sep 17 00:00:00 2001 From: Nikolay Panov <52208710+panikgit@users.noreply.github.com> Date: Mon, 8 Aug 2022 20:08:45 +0400 Subject: [PATCH] [#1946] T.65 Fix two typos (#1956) Fixes #1946: - copy_trait type argument needs to be a container element type. Use Value_type like in other examples. - Fix name typo in the definition of copy_helper. --- CppCoreGuidelines.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 4fec73c..9f2aeb2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -18248,7 +18248,7 @@ This is a simplified version of `std::copy` (ignoring the possibility of non-con template Out copy(Iter first, Iter last, Iter out) { - return copy_helper(first, last, out, typename copy_trait::tag{}) + return copy_helper(first, last, out, typename copy_trait>::tag{}) } void use(vector& vi, vector& vi2, vector& vs, vector& vs2) @@ -18264,7 +18264,7 @@ This is a general and powerful technique for compile-time algorithm selection. When `concept`s become widely available such alternatives can be distinguished directly: template - requires Pod> + requires Pod> Out copy_helper(In, first, In last, Out out) { // use memmove