C++23 compatibility: basic_string_view cannot be constructed from nullptr (#3846)

Co-authored-by: Anders Dalvander <anders.dalvander@sartorius.com>
This commit is contained in:
Anders Dalvander 2024-02-09 16:39:43 +01:00 committed by GitHub
parent 3a6fb2fcaf
commit ae181cc93d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -487,6 +487,8 @@ template <typename Char> class basic_string_view {
constexpr basic_string_view(const Char* s, size_t count) noexcept
: data_(s), size_(count) {}
constexpr basic_string_view(std::nullptr_t) = delete;
/**
Constructs a string reference object from a C string.
*/