Skip to content

Commit fcb0b4a

Browse files
committed
Trying to work around the Apple Clang consteval bug
1 parent 6932522 commit fcb0b4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

utility/constexpr_algorithms.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ namespace detail {
1212
{
1313
if constexpr (std::is_same_v<bool, decltype(f.template operator()<First>())>)
1414
{
15-
if constexpr (f.template operator()<First>() == true)
15+
constexpr bool proceed = f.template operator()<First>();
16+
if constexpr (proceed)
1617
consteval_for_T<T, First + 1, Last>(f);
1718
}
1819
else

0 commit comments

Comments
 (0)