From 0b93a586f1f657509ebc86e68ec7ea9a1bff66ad Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Sat, 12 Jul 2025 16:08:53 -0500 Subject: [PATCH] Use an R-string instead of using so many backslashes in the quoted string examples. Fixes #239. --- test/parser_quoted_string.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parser_quoted_string.cpp b/test/parser_quoted_string.cpp index 354ea5f5..888fd4b8 100644 --- a/test/parser_quoted_string.cpp +++ b/test/parser_quoted_string.cpp @@ -323,8 +323,7 @@ int main() assert(result1); std::cout << *result1 << "\n"; // Prints: some text - auto result2 = - bp::parse("\"some \\\"text\\\"\"", bp::quoted_string, bp::ws); + auto result2 = bp::parse(R"("some \"text\"")", bp::quoted_string, bp::ws); assert(result2); std::cout << *result2 << "\n"; // Prints: some "text" //]