From a97be2d528320584d4d61fd3d204acdc23e94d94 Mon Sep 17 00:00:00 2001 From: Herb Sutter Date: Thu, 11 Feb 2021 11:57:50 -0800 Subject: [PATCH] Addresses #1732 --- CppCoreGuidelines.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 55901df..2d5b6e2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -2152,9 +2152,15 @@ Define a `struct` as the parameter type and name the fields for those parameters This tends to make invocations of this clear to future readers, as the parameters are often filled in by name at the call site. -##### Enforcement +##### Note -(Simple) Warn if two consecutive parameters share the same type. +Only the interface's designer can adequately address the source of violations of this guideline. + +##### Enforcement strategy + +(Simple) Warn if two consecutive parameters share the same type + +We are still looking for a less-simple enforcement. ### I.25: Prefer empty abstract classes as interfaces to class hierarchies