[v3 PATCH] Implement P0403R1, Literal suffixes for basic_string_view.

Jonathan Wakely jwakely@redhat.com
Thu Nov 17 16:54:00 GMT 2016


On 14/11/16 21:23 +0100, François Dumont wrote:
>Just a minor issue in several assert messages:
>
>+  static_assert(std::is_same<decltype("Hello"sv), std::string_view>::value,
>+		"\"Hello\"s is std::string_view");
>
>should say "\"Hello\"sv is...

Good catch.

>I considered using string_view in my recent print_word evolution in debug.cc. With this patch it would be a nicer way to deal with literals.

To do that we'd need to compile that file using -std=gnu++17 but
that's possible.



More information about the Libstdc++ mailing list