[Bug c++/69683] multiline raw string R"()" for C++11 warning in false #ifdef when -std=c++98
jcrada at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Feb 5 11:56:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69683
--- Comment #5 from Juan Rada-Vilela <jcrada at gmail dot com> ---
(In reply to Jonathan Wakely from comment #4)
> (In reply to Juan Rada-Vilela from comment #2)
> > Is there anything I can do to avoid triggering a warning and yet
> > use a raw string?
>
> You can use R""(this)"" or R"xxx"(this)"xxx" as the raw string, so the
> quotes are matched and don't confuse the C++98 compiler.
Thank you so much. This solves this issue nicely.
More information about the Gcc-bugs
mailing list