AnthonyCalandra / modern-cpp-features

A cheatsheet of modern C++ language and library features.
MIT License
19.6k stars 2.08k forks source link

Added raw string literals to C++11 features #96

Closed DaveUltra closed 3 years ago

DaveUltra commented 3 years ago

As pointed out in issue #75 , raw string literals were added in C++11, but were missing in the features list. I have written a short description of raw string literals, their declaration syntax, and a usage example, comparing with a classing string literal. In this example, I made use of line feeds and tabs escape sequences to clearly show the difference between C++11's new literals and the old ones. I have added my paragraph to CPP11.md and README.md. I hope that my contribution (if particularly small) will suit your project, and I hope it will keep growing from more contributions.

Best regards, David.

AnthonyCalandra commented 3 years ago

I made some changes to the text to make it more concise, and also removed the mention of the optional prefix since I don't think it's worth pointing out. Also tweaked the formatting a little bit because the string literal syntax got stuck on a line.

LGTM, thanks!

DaveUltra commented 3 years ago

Ok awesome. Thank you!