Skip to content

Commit

Permalink
Merge pull request #1440 from dtolnay/noexceptplus
Browse files Browse the repository at this point in the history
Mark operator+(difference_type, Slice<T>::iterator) as noexcept
  • Loading branch information
dtolnay authored Feb 9, 2025
2 parents 754119b + bad4095 commit 0eb5b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class Slice<T>::iterator final {
iterator &operator+=(difference_type) noexcept;
iterator &operator-=(difference_type) noexcept;
iterator operator+(difference_type) const noexcept;
friend inline iterator operator+(difference_type lhs, iterator rhs) {
friend inline iterator operator+(difference_type lhs, iterator rhs) noexcept {
return rhs + lhs;
}
iterator operator-(difference_type) const noexcept;
Expand Down

0 comments on commit 0eb5b5e

Please sign in to comment.