diff --git a/test/static_string.cpp b/test/static_string.cpp index 5d528c4..597ab9d 100644 --- a/test/static_string.cpp +++ b/test/static_string.cpp @@ -6961,31 +6961,14 @@ runTests() } static_assert(std::is_base_of< - detail::static_string_base_zero<0, char, std::char_traits>, + detail::static_string_base<0, char, std::char_traits>, 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, - "the null terminator optimization shall be used for N <= (std::numeric_limits::max)()"); - -static_assert(std::is_base_of< - detail::static_string_base_null<(std::numeric_limits::max)(), char, std::char_traits>, - static_string<(std::numeric_limits::max)()>>::value, - "the null terminator optimization shall be used for N <= std::numeric_limits::max()"); - -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>, + detail::static_string_base<(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