diff --git a/core/containers/vector.h b/core/containers/vector.h index dc0b252..f1d0ef7 100644 --- a/core/containers/vector.h +++ b/core/containers/vector.h @@ -29,8 +29,8 @@ public: void append_array(const Vector &other); int find(const T &val) const; - int *dataw(); - const int *data() const; + T *dataw(); + const T *data() const; const T &operator[](const int index) const; T &operator[](const int index); @@ -202,12 +202,12 @@ int Vector::find(const T &val) const { } template -int *Vector::dataw() { +T *Vector::dataw() { return _data; } template -const int *Vector::data() const { +const T *Vector::data() const { return _data; }