mirror of
https://github.com/boostorg/core.git
synced 2025-07-29 20:37:22 +02:00
Fix libc++16 failures
This commit is contained in:
@ -7,10 +7,19 @@
|
||||
#include <boost/core/lightweight_test_trait.hpp>
|
||||
#include <iterator>
|
||||
|
||||
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 160000
|
||||
|
||||
// std::char_traits<Ch> is deprecated for non-char types
|
||||
typedef wchar_t Ch;
|
||||
|
||||
#else
|
||||
|
||||
struct Ch
|
||||
{
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
typedef boost::core::basic_string_view<Ch> ch_string_view;
|
||||
|
@ -310,7 +310,11 @@ int main()
|
||||
TEST(std::pair<void, void>);
|
||||
TEST(std::pair<std::pair<void, void>, void>);
|
||||
|
||||
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 160000
|
||||
// std::char_traits<Ch> is deprecated for non-char types
|
||||
#else
|
||||
TEST(std::basic_string<Ch>);
|
||||
#endif
|
||||
|
||||
TEST(std::string);
|
||||
TEST(std::wstring);
|
||||
@ -402,7 +406,11 @@ int main()
|
||||
|
||||
#if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
|
||||
|
||||
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 160000
|
||||
// std::char_traits<Ch> is deprecated for non-char types
|
||||
#else
|
||||
TEST(std::basic_string_view<Ch>);
|
||||
#endif
|
||||
|
||||
TEST(std::string_view);
|
||||
TEST(std::wstring_view);
|
||||
|
Reference in New Issue
Block a user