From 84ee288b022865acb9a6d1fa703efdd77bb3208e Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Sat, 26 Jul 2025 21:13:28 -0500 Subject: [PATCH] Attempt to fix odd error in happy path of code submitted with issue 223. --- test/github_issues.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/test/github_issues.cpp b/test/github_issues.cpp index 6996cd45..41701309 100644 --- a/test/github_issues.cpp +++ b/test/github_issues.cpp @@ -271,12 +271,6 @@ void github_issue_223() BOOST_TEST(v.size() == 1); BOOST_TEST(v == std::vector({'y'})); - std::cout << "v.size()=" << v.size() << "\n"; - for (auto c : v) { - std::cout << std::hex << (int)c << ' '; - } - std::cout << "\n"; - // the assert fails since there are two elements in the vector: '\0' // and 'y'. Seems pretty surprising to me } @@ -287,7 +281,7 @@ void github_issue_223() const auto result = bp::parse("xy", parser, bp::ws); BOOST_TEST(result->size() == 1); - BOOST_TEST(*result == std::vector>({'y'})); + BOOST_TEST(*(*result)[0] == 'y'); // success, the vector has only one 'y' element }