diff --git a/cpp/6 kyu - Parenthesis detector.cpp b/cpp/6 kyu - Parenthesis detector.cpp new file mode 100644 index 0000000..fb357e1 --- /dev/null +++ b/cpp/6 kyu - Parenthesis detector.cpp @@ -0,0 +1,6 @@ +struct A { + A operator !() { return {}; } + bool operator ()() { return true; } +}; + +#define isParenthesized !A{}