File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,6 @@ template <typename Char> class basic_string_view {
501501 constexpr basic_string_view () noexcept : data_(nullptr ), size_(0 ) {}
502502 constexpr basic_string_view (const Char* s, size_t count) noexcept
503503 : data_(s), size_(count) {}
504- constexpr basic_string_view (nullptr_t ) = delete;
505504
506505#if FMT_GCC_VERSION
507506 FMT_ALWAYS_INLINE
@@ -1732,11 +1731,9 @@ template <typename T> class buffer {
17321731
17331732 protected:
17341733 // Don't initialize ptr_ since it is not accessed to save a few cycles.
1735- constexpr buffer (grow_fun grow, size_t sz) noexcept
1734+ FMT_CONSTEXPR buffer (grow_fun grow, size_t sz) noexcept
17361735 : size_(sz), capacity_(sz), grow_(grow) {
1737- #if FMT_MSC_VERSION
1738- ptr_ = nullptr ; // Suppress warning 26495.
1739- #endif
1736+ if (FMT_MSC_VERSION) ptr_ = nullptr ; // Suppress warning 26495.
17401737 }
17411738
17421739 constexpr buffer (grow_fun grow, T* p = nullptr , size_t sz = 0 ,
You can’t perform that action at this time.
0 commit comments