From 581106395ae5f944fe3985509dd732fcff9b57bc Mon Sep 17 00:00:00 2001 From: Bredor <40574176+freedan42x@users.noreply.github.com> Date: Mon, 11 Dec 2023 22:56:22 +0200 Subject: [PATCH] Create 6 kyu - Parenthesis detector.cpp --- cpp/6 kyu - Parenthesis detector.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cpp/6 kyu - Parenthesis detector.cpp 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{}