mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 12:35:32 +00: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:
parent
3a6fb2fcaf
commit
ae181cc93d
@ -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.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user