Skip to content

Commit

Permalink
Fix compile with GCC 6.3.0 (bug fmtlib#3738) (fmtlib#3743)
Browse files Browse the repository at this point in the history
  • Loading branch information
asantoni authored and happymonkey1 committed Apr 6, 2024
1 parent c2b86bd commit 4888c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ template <typename T> class buffer {
protected:
// Don't initialize ptr_ since it is not accessed to save a few cycles.
FMT_MSC_WARNING(suppress : 26495)
buffer(size_t sz) noexcept : size_(sz), capacity_(sz) {}
FMT_CONSTEXPR buffer(size_t sz) noexcept : size_(sz), capacity_(sz) {}

FMT_CONSTEXPR20 buffer(T* p = nullptr, size_t sz = 0, size_t cap = 0) noexcept
: ptr_(p), size_(sz), capacity_(cap) {}
Expand Down

0 comments on commit 4888c7d

Please sign in to comment.