https://bugs.documentfoundation.org/show_bug.cgi?id=149198

--- Comment #2 from Mike Kaganski <[email protected]> ---
FTR: STR51-CPP [1] explains that [char.traits.require] requires that
std::char_traits::length() must not be used with nullptr; and indeed,
construction of a string view from a char pointer is done using
char_traits::length.

[1]
https://wiki.sei.cmu.edu/confluence/display/cplusplus/STR51-CPP.+Do+not+attempt+to+create+a+std%3A%3Astring+from+a+null+pointer

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to