mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-19 04:42:12 +00:00
Fix our deduction guide
This commit is contained in:
@@ -6529,7 +6529,7 @@ to_static_wstring(long double value) noexcept
|
||||
#ifdef BOOST_STATIC_STRING_USE_DEDUCT
|
||||
template<std::size_t N, typename CharT>
|
||||
basic_static_string(const CharT(&)[N]) ->
|
||||
basic_static_string<N, CharT, std::char_traits<CharT>>;
|
||||
basic_static_string<N - 1, CharT, std::char_traits<CharT>>;
|
||||
#endif
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user