Skip to content

Commit b671859

Browse files
committed
🐛 Fix clang linker issue
Problem: - clang-21 gets a link error on a `consteval` function. Solution: - Make it clear that the variable is `constexpr`.
1 parent e722f5c commit b671859

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/stdx/ct_format.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ constexpr auto ct_format = [](auto &&...args) {
270270
return (format1.template operator()<Is>(ct_format_as(FWD(args))) + ... +
271271
format_result{cts_t<data::last_cts>{}});
272272
}(std::make_index_sequence<data::N>{});
273-
return format_result{detail::convert_output<result.str.value, Output>(),
274-
result.args};
273+
constexpr auto str = detail::convert_output<result.str.value, Output>();
274+
return format_result{str, result.args};
275275
};
276276

277277
template <ct_string Fmt>

0 commit comments

Comments
 (0)