From 94e0c9205e6049c6b3295145af7fd39156e77543 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 3 Aug 2022 08:51:28 -0400 Subject: add upstream 11.23 --- zen/legacy_compiler.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zen/legacy_compiler.h') 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 -- cgit