adt, bugfix - fix assert when accessing bounded_vector::data() member

master
Francisco 4 years ago committed by Francisco Paisana
parent be46806495
commit 80104c7e65

@ -107,8 +107,8 @@ public:
}
T& front() { return (*this)[0]; }
const T& front() const { return (*this)[0]; }
T* data() { return &front(); }
const T* data() const { return &front(); }
T* data() { return reinterpret_cast<T*>(&buffer[0]); }
const T* data() const { return reinterpret_cast<const T*>(&buffer[0]); }
// Iterators
iterator begin() { return data(); }

Loading…
Cancel
Save