I shouldn't be there

This commit is contained in:
Victor Zverovich
2022-08-02 15:49:41 -07:00
parent 6567df7f24
commit 5f774c0aed
2 changed files with 5 additions and 3 deletions

View File

@@ -935,11 +935,11 @@ template <typename T> class buffer {
/** Appends data to the end of the buffer. */
template <typename U> void append(const U* begin, const U* end);
template <typename I> FMT_CONSTEXPR auto operator[](I index) -> T& {
template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& {
return ptr_[index];
}
template <typename I>
FMT_CONSTEXPR auto operator[](I index) const -> const T& {
template <typename Idx>
FMT_CONSTEXPR auto operator[](Idx index) const -> const T& {
return ptr_[index];
}
};