mirror of
https://github.com/boostorg/core.git
synced 2025-07-31 05:17:22 +02:00
Fix libc++16 failures
This commit is contained in:
@ -7,10 +7,19 @@
|
|||||||
#include <boost/core/lightweight_test_trait.hpp>
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
#include <iterator>
|
#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
|
struct Ch
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
typedef boost::core::basic_string_view<Ch> ch_string_view;
|
typedef boost::core::basic_string_view<Ch> ch_string_view;
|
||||||
|
@ -310,7 +310,11 @@ int main()
|
|||||||
TEST(std::pair<void, void>);
|
TEST(std::pair<void, void>);
|
||||||
TEST(std::pair<std::pair<void, 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>);
|
TEST(std::basic_string<Ch>);
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(std::string);
|
TEST(std::string);
|
||||||
TEST(std::wstring);
|
TEST(std::wstring);
|
||||||
@ -402,7 +406,11 @@ int main()
|
|||||||
|
|
||||||
#if !defined(BOOST_NO_CXX17_HDR_STRING_VIEW)
|
#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>);
|
TEST(std::basic_string_view<Ch>);
|
||||||
|
#endif
|
||||||
|
|
||||||
TEST(std::string_view);
|
TEST(std::string_view);
|
||||||
TEST(std::wstring_view);
|
TEST(std::wstring_view);
|
||||||
|
Reference in New Issue
Block a user