From 903d44c0c569dba4d764c4ac9d12a3f25aad4576 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 9 Oct 2021 19:52:10 +0300 Subject: [PATCH] Test std::pmr::string in sv_conversion_test --- test/sv_conversion_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/sv_conversion_test.cpp b/test/sv_conversion_test.cpp index fb77e8d..5208d49 100644 --- a/test/sv_conversion_test.cpp +++ b/test/sv_conversion_test.cpp @@ -32,6 +32,17 @@ int main() BOOST_TEST_EQ( s1, s2 ); } +#endif + +#if !defined(BOOST_NO_CXX17_HDR_MEMORY_RESOURCE) + + { + std::pmr::string s1( "123" ); + std::pmr::string s2 = f( s1 ); + + BOOST_TEST_EQ( s1, s2 ); + } + #endif return boost::report_errors();