Displaying 1 result from an estimated 1 matches for "d26332".
Did you mean:
26332
2016 Nov 24
3
RFC: Constructing StringRefs at compile time
...constexpr constructor for string literals
by making the constructor from const char * explicit:
https://reviews.llvm.org/D25639
This is a verbose change at every non-literal call site.
This only works with assignment syntax.
I've suggested using a user-defined literal:
https://reviews.llvm.org/D26332
This is a small change where needed at string literal call sites.
C++17 adds a UDL for std::string_view, so it's not an unusual idea.
There is resistance to using a UDL as they can introduce a surprising
and novel syntax for calling functions.
Comments?
Other options?
Thanks,
--
Malcolm Par...