added constexpr and static_assert to REPEAT_FOR_TYPES
This commit is contained in:
parent
fce50dc9b0
commit
3413dadfae
|
|
@ -294,11 +294,11 @@ constexpr auto _repeat_for_types(auto f) {
|
|||
|
||||
#define REPEAT_FOR_TYPES(func, ...) { \
|
||||
auto r = _repeat_for_types<__VA_ARGS__>(func); \
|
||||
auto it = std::ranges::find_if(r, [](auto&& e) { return e.val == ReturnCode::FAILED; }); \
|
||||
auto it = std::ranges::find_if(r, [](auto&& e) constexpr { return e.val == ReturnCode::FAILED; }); \
|
||||
if (it != std::ranges::end(r)) { \
|
||||
return *it; \
|
||||
} \
|
||||
}
|
||||
} static_assert(true, "")
|
||||
|
||||
|
||||
#define CREATE_FROM_IL(type, il, len) \
|
||||
|
|
|
|||
Loading…
Reference in New Issue