Skip to content

Commit

Permalink
ES.34: use the previously declared "const char * is"
Browse files Browse the repository at this point in the history
  • Loading branch information
antcolag authored Aug 28, 2023
1 parent b5adbd2 commit b438749
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CppCoreGuidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b438749

Please sign in to comment.