Skip to content

Commit

Permalink
fix: Missing noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
sizmailov committed Sep 7, 2023
1 parent 56ed9b3 commit 797d580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_sequences_and_iterators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ class NonZeroIterator {

// Make the iterator non-copyable and movable
NonZeroIterator(const NonZeroIterator &) = delete;
NonZeroIterator(NonZeroIterator &&) = default;
NonZeroIterator(NonZeroIterator &&) noexcept = default;
NonZeroIterator &operator=(const NonZeroIterator &) = delete;
NonZeroIterator &operator=(NonZeroIterator &&) = default;
NonZeroIterator &operator=(NonZeroIterator &&) noexcept = default;

const T &operator*() const { return *ptr_; }
NonZeroIterator &operator++() {
Expand Down

0 comments on commit 797d580

Please sign in to comment.