From b6718592c4d8d4ace39cd0e9e80bcc0adbb6bef8 Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Tue, 2 Dec 2025 11:23:45 -0700 Subject: [PATCH] :bug: Fix clang linker issue Problem: - clang-21 gets a link error on a `consteval` function. Solution: - Make it clear that the variable is `constexpr`. --- include/stdx/ct_format.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/stdx/ct_format.hpp b/include/stdx/ct_format.hpp index c2b3d15..2a32fdb 100644 --- a/include/stdx/ct_format.hpp +++ b/include/stdx/ct_format.hpp @@ -270,8 +270,8 @@ constexpr auto ct_format = [](auto &&...args) { return (format1.template operator()(ct_format_as(FWD(args))) + ... + format_result{cts_t{}}); }(std::make_index_sequence{}); - return format_result{detail::convert_output(), - result.args}; + constexpr auto str = detail::convert_output(); + return format_result{str, result.args}; }; template