We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e722f5c commit b671859Copy full SHA for b671859
include/stdx/ct_format.hpp
@@ -270,8 +270,8 @@ constexpr auto ct_format = [](auto &&...args) {
270
return (format1.template operator()<Is>(ct_format_as(FWD(args))) + ... +
271
format_result{cts_t<data::last_cts>{}});
272
}(std::make_index_sequence<data::N>{});
273
- return format_result{detail::convert_output<result.str.value, Output>(),
274
- result.args};
+ constexpr auto str = detail::convert_output<result.str.value, Output>();
+ return format_result{str, result.args};
275
};
276
277
template <ct_string Fmt>
0 commit comments