Skip to content

Commit

Permalink
Also apply similar to IndexedVector
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimír Štill <[email protected]>
  • Loading branch information
vlstill committed Feb 21, 2025
1 parent b543aa5 commit 48944a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ir/indexed_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class IndexedVector : public Vector<T> {
}
IndexedVector &operator=(const IndexedVector &) = default;
IndexedVector &operator=(IndexedVector &&) = default;
explicit IndexedVector(const T *a) { push_back(std::move(a)); }
explicit IndexedVector(const T *a) { push_back(a); }
explicit IndexedVector(const safe_vector<const T *> &a) {
insert(Vector<T>::end(), a.begin(), a.end());
}
Expand All @@ -92,7 +92,8 @@ class IndexedVector : public Vector<T> {
// TODO: Although this is not a const_iterator, it should NOT
// be used to modify the vector directly. I don't know
// how to enforce this property, though.
typedef typename Vector<T>::iterator iterator;
using iterator = typename Vector<T>::iterator;
using const_iterator = typename Vector<T>::const_iterator;

const IDeclaration *getDeclaration(cstring name) const {
auto it = declarations.find(name);
Expand Down

0 comments on commit 48944a9

Please sign in to comment.