On Friday, 7 February 2020 16:47:04 UTC+2, Paul wrote:
> In
https://isocpp.org/wiki/faq/big-picture it gives as an example code snippet:
>
> auto p = find(begin(vs), end(vs), "Grail"s);
> // vector<string> vs; p is vector<string>::iterator
>
> Is the s at the end of "Grail" a typo?
No.
https://en.cppreference.com/w/cpp/string/basic_string/operator%22%22s
> I can't understand it or get it to compile.
> Without that s it makes perfect sense.
You need to have:
using namespace std::string_literals;
Or:
using std::string_literals::operator ""s;
Within current namespace.