diff options
author | B. Stack <bgstack15@gmail.com> | 2022-08-03 08:51:28 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-08-03 08:51:28 -0400 |
commit | 94e0c9205e6049c6b3295145af7fd39156e77543 (patch) | |
tree | c36c0f0c5fab7aa60432e9e1d32ba5fdfabeb55e /zen/legacy_compiler.h | |
parent | Merge branch '11.22' into 'master' (diff) | |
download | FreeFileSync-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.h | 9 |
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 |