From 9c61b2fc15bb70db7627d012a54aaf60dc1f81bf Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Mon, 16 Dec 2019 23:54:20 -0500 Subject: [PATCH] Update tests --- test/static_string.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/static_string.cpp b/test/static_string.cpp index 180be03..f8d7c4b 100644 --- a/test/static_string.cpp +++ b/test/static_string.cpp @@ -7031,6 +7031,7 @@ static_assert(std::is_base_of< static_string<0>>::value, "the zero size optimization shall be used for N = 0"); +#ifdef BOOST_STATIC_STRING_USE_NULL_OPTIMIZATION static_assert(std::is_base_of< detail::static_string_base_null<1, char, std::char_traits>, static_string<1>>::value, @@ -7045,6 +7046,12 @@ static_assert(std::is_base_of< detail::static_string_base_zero<(std::numeric_limits::max)() + 1, char, std::char_traits>, static_string<(std::numeric_limits::max)() + 1>>::value, "the minimum size type optimization shall be used for N > std::numeric_limits::max()"); +#else +static_assert(std::is_base_of< + detail::static_string_base_zero<(std::numeric_limits::max)() + 1, char, std::char_traits>, + static_string<(std::numeric_limits::max)() + 1>>::value, + "the minimum size type optimization shall be used for N > 0"); +#endif } // static_string } // boost