Skip to content

Commit

Permalink
fix: correctly type pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Nov 25, 2024
1 parent 9b93c1a commit 24c972f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TinyADT/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Vector {
class iterator {
public:
constexpr iterator() : pointer_(nullptr) {}
constexpr iterator(const T* pointer) : pointer_(pointer) {}
constexpr iterator(T* pointer) : pointer_(pointer) {}

iterator& operator=(const iterator& rhs) {
pointer_ = rhs.pointer_;
Expand Down

0 comments on commit 24c972f

Please sign in to comment.