I shouldn't be there

This commit is contained in:
Victor Zverovich committed 2022-08-02 16:35:50 -07:00
1 parent 6567df7f24
commit 5f774c0aed
2 files changed
+5 -3

No files matched your search

+3 -3
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];
}
};