From 2b80bc92a5c16c8ffe8f6f9b33e5dc78d927697b Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 12 Sep 2016 18:41:54 +0200 Subject: [PATCH] T.65: fix code examples --- CppCoreGuidelines.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 2f00f37..c1b4bc4 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -15126,11 +15126,11 @@ Specialization offers a powerful mechanism for providing alternative implementat This is a simplified version of `std::copy` (ignoring the possibility of non-contiguous sequences) struct pod_tag {}; - struct non_pod_tag; + struct non_pod_tag {}; template struct copy_trait { using tag = non_pod_tag; }; // T is not "plain old data" - template<> struct copy_trait { using tab = pod_tag; }; // int is "plain old data" + template<> struct copy_trait { using tag = pod_tag; }; // int is "plain old data" template Out copy_helper(Iter first, Iter last, Iter out, pod_tag) @@ -15163,7 +15163,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