Skip to content

Commit 0b93a58

Browse files
committed
Use an R-string instead of using so many backslashes in the quoted string
examples. Fixes #239.
1 parent ed9a061 commit 0b93a58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parser_quoted_string.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,7 @@ int main()
323323
assert(result1);
324324
std::cout << *result1 << "\n"; // Prints: some text
325325

326-
auto result2 =
327-
bp::parse("\"some \\\"text\\\"\"", bp::quoted_string, bp::ws);
326+
auto result2 = bp::parse(R"("some \"text\"")", bp::quoted_string, bp::ws);
328327
assert(result2);
329328
std::cout << *result2 << "\n"; // Prints: some "text"
330329
//]

0 commit comments

Comments
 (0)