diff --git a/ostd/range.hh b/ostd/range.hh index 27441a5..b104e69 100644 --- a/ostd/range.hh +++ b/ostd/range.hh @@ -942,6 +942,9 @@ struct PointerRange: InputRange, ContiguousRangeTag, T> { return copy(PointerRange(p, c), c); } + T *data() { return p_beg; } + const T *data() const { return p_beg; } + private: T *p_beg, *p_end; }; diff --git a/ostd/string.hh b/ostd/string.hh index da44d37..0368a58 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -142,7 +142,6 @@ public: return true; } - /* non-range methods */ T *data() { return p_beg; } const T *data() const { return p_beg; }