From 5e53eda70b0e20ab1bd50fb73561602efe572efe Mon Sep 17 00:00:00 2001 From: Ben Deane Date: Tue, 27 Oct 2026 16:15:08 -0600 Subject: [PATCH] :bug: Fix `STATIC_ASSERT` template argument Problem: - The `STATIC_ASSERT` macro doesn't help out GCC enough; the `format_result` doesn't implicitly convert to a `ct_string`. Solution: - Explicitly convert to a `ct_string` in the workaround case for `STATIC_ASSERT`. --- include/stdx/static_assert.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdx/static_assert.hpp b/include/stdx/static_assert.hpp index 7f3be39..2d98e25 100644 --- a/include/stdx/static_assert.hpp +++ b/include/stdx/static_assert.hpp @@ -47,7 +47,7 @@ template constexpr auto ct_check = ct_check_t{}; #define STATIC_ASSERT(cond, ...) \ []() -> bool { \ constexpr auto S = STDX_CT_FORMAT(__VA_ARGS__); \ - stdx::detail::ct_check.template emit(); \ + stdx::detail::ct_check.template emit<+S.str>(); \ return B; \ }.template operator()() #endif