mercredi 21 mars 2018

escape R"()" in a raw string in C++

  string raw_str = R"(R"(foo)")";

If I have R"()" inside a raw string, and that causes the parser to confuse. (ie., it thought the left most )" was the end of the raw string.

How do I escape this?

Aucun commentaire:

Enregistrer un commentaire