summaryrefslogtreecommitdiff
path: root/zen/legacy_compiler.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-08-03 08:51:28 -0400
committerB. Stack <bgstack15@gmail.com>2022-08-03 08:51:28 -0400
commit94e0c9205e6049c6b3295145af7fd39156e77543 (patch)
treec36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /zen/legacy_compiler.h
parentMerge branch '11.22' into 'master' (diff)
downloadFreeFileSync-94e0c9205e6049c6b3295145af7fd39156e77543.tar.gz
FreeFileSync-94e0c9205e6049c6b3295145af7fd39156e77543.tar.bz2
FreeFileSync-94e0c9205e6049c6b3295145af7fd39156e77543.zip
add upstream 11.23
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