mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
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:
@@ -487,6 +487,8 @@ template <typename Char> class basic_string_view {
|
|||||||
constexpr basic_string_view(const Char* s, size_t count) noexcept
|
constexpr basic_string_view(const Char* s, size_t count) noexcept
|
||||||
: data_(s), size_(count) {}
|
: data_(s), size_(count) {}
|
||||||
|
|
||||||
|
constexpr basic_string_view(std::nullptr_t) = delete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Constructs a string reference object from a C string.
|
Constructs a string reference object from a C string.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user