Commit 956ca5fd authored by Kenton Varda's avatar Kenton Varda Committed by Kenton Varda

Add Repeat<T>::operator[]

parent 88f3a85c
...@@ -758,7 +758,7 @@ public: ...@@ -758,7 +758,7 @@ public:
inline Iterator end() const { return Iterator(value, count); } inline Iterator end() const { return Iterator(value, count); }
inline size_t size() const { return count; } inline size_t size() const { return count; }
inline T operator[](ptrdiff_t) const { return value; } inline const T& operator[](ptrdiff_t) const { return value; }
private: private:
T value; T value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment