From 0c5e5b8e584be1806a046385d447a13755bf6cb1 Mon Sep 17 00:00:00 2001 From: Gennaro Prota Date: Thu, 18 Dec 2025 16:44:07 +0100 Subject: [PATCH] Fix our deduction guide --- include/boost/static_string/static_string.hpp | 2 +- test/constexpr_tests.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/static_string/static_string.hpp b/include/boost/static_string/static_string.hpp index 6b4d3d0..f82425a 100644 --- a/include/boost/static_string/static_string.hpp +++ b/include/boost/static_string/static_string.hpp @@ -6529,7 +6529,7 @@ to_static_wstring(long double value) noexcept #ifdef BOOST_STATIC_STRING_USE_DEDUCT template basic_static_string(const CharT(&)[N]) -> - basic_static_string>; + basic_static_string>; #endif //------------------------------------------------------------------------------ diff --git a/test/constexpr_tests.hpp b/test/constexpr_tests.hpp index 71ca3af..018741e 100644 --- a/test/constexpr_tests.hpp +++ b/test/constexpr_tests.hpp @@ -110,6 +110,7 @@ testConstantEvaluation() // Check construction in a constexpr context constexpr basic_static_string s("hello"); static_assert(s.size() == 5); + static_assert(s.static_capacity == 5); static_assert(s == "hello"); // Check assignment in a constexpr context