summaryrefslogtreecommitdiff
path: root/zen/legacy_compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/legacy_compiler.h')
-rw-r--r--zen/legacy_compiler.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/zen/legacy_compiler.h b/zen/legacy_compiler.h
index 6c9381ee..33394de3 100644
--- a/zen/legacy_compiler.h
+++ b/zen/legacy_compiler.h
@@ -34,4 +34,13 @@ double fromChars(const char* first, const char* last);
const char* toChars(char* first, char* last, double num);
}
+
+#if 0 //neat: supported on MSVC, but not yet on GCC, Clang
+auto closure = [](this auto&& self)
+{
+ self(); //just call ourself until the stack overflows
+ //e.g. use for: deleteEmptyFolderTask, removeFolderRecursionImpl, scheduleMoreTasks, traverse
+};
+#endif
+
#endif //LEGACY_COMPILER_H_839567308565656789
bgstack15