@@ -914,17 +914,17 @@ namespace { // Anonymous namespace which is translation-unit-specific; certain s
914
914
#define SOMETIMES_LESS_THAN_OR_EQUAL_TO (val, threshold, message, ...) \
915
915
ANTITHESIS_SDK_SOMETIMES_POLYFILL ((val <= threshold), message, __VA_ARGS__)
916
916
#define ALWAYS_SOME (pairs, message, ...) \
917
- ANTITHESIS_SDK_ALWAYS_POLYFILL (([&](){ \
918
- std::initializer_list<std::pair<std::string, bool >> ps = pairs; \
917
+ ANTITHESIS_SDK_ALWAYS_POLYFILL (([]( \
918
+ std::initializer_list<std::pair<std::string, bool >> ps){ \
919
919
for (auto const & pair : ps) \
920
920
if (pair.second ) return true ; \
921
- return false ; }()), message, __VA_ARGS__)
921
+ return false ; }(pairs )), message, __VA_ARGS__)
922
922
#define SOMETIMES_ALL (pairs, message, ...) \
923
- ANTITHESIS_SDK_SOMETIMES_POLYFILL (([&](){ \
924
- std::initializer_list<std::pair<std::string, bool >> ps = pairs; \
923
+ ANTITHESIS_SDK_SOMETIMES_POLYFILL (([]( \
924
+ std::initializer_list<std::pair<std::string, bool >> ps){ \
925
925
for (auto const & pair : ps) \
926
926
if (!pair.second ) return false ; \
927
- return true ; }()), message, __VA_ARGS__)
927
+ return true ; }(pairs )), message, __VA_ARGS__)
928
928
929
929
#else
930
930
0 commit comments