diff --git a/include/fmt/core.h b/include/fmt/core.h index 35c6414c..1bb58793 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -633,6 +633,9 @@ template class buffer { T* begin() FMT_NOEXCEPT { return ptr_; } T* end() FMT_NOEXCEPT { return ptr_ + size_; } + const T* begin() const FMT_NOEXCEPT { return ptr_; } + const T* end() const FMT_NOEXCEPT { return ptr_ + size_; } + /** Returns the size of this buffer. */ std::size_t size() const FMT_NOEXCEPT { return size_; }