constexpr bool isString(const char*) {
return true;
}
int main() {
static const char x[] = "asd";
static_assert(isString(x), "Is not a string");
static_assert(isString(0), "Is not a string");
}
Y29uc3RleHByIGJvb2wgaXNTdHJpbmcoY29uc3QgY2hhciopIHsKICAgIHJldHVybiB0cnVlOwp9CgppbnQgbWFpbigpIHsKICAgIHN0YXRpYyBjb25zdCBjaGFyIHhbXSA9ICJhc2QiOwogICAgc3RhdGljX2Fzc2VydChpc1N0cmluZyh4KSwgIklzIG5vdCBhIHN0cmluZyIpOwogICAgCiAgICBzdGF0aWNfYXNzZXJ0KGlzU3RyaW5nKDApLCAiSXMgbm90IGEgc3RyaW5nIik7Cgp9Cg==