From b43874936f5c50bd40d7f9cc58225613cd27f973 Mon Sep 17 00:00:00 2001 From: antcolag Date: Mon, 28 Aug 2023 06:06:14 +0200 Subject: [PATCH] ES.34: use the previously declared "const char * is" --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 192d876..d6b82c5 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11491,7 +11491,7 @@ Requires messy cast-and-macro-laden code to get working right. error(7, "this", "is", "an", "error"); // crash const char* is = "is"; string an = "an"; - error(7, "this", "is", an, "error"); // crash + error(7, "this", is, an, "error"); // crash } **Alternative**: Overloading. Templates. Variadic templates.