ES.34: use the previously declared "const char * is"

This commit is contained in:
antcolag 2023-08-28 06:06:14 +02:00 committed by GitHub
parent b5adbd2564
commit b43874936f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.