Browse Source

view: updated noexcept-ness for iterators

Michele Caini 5 years ago
parent
commit
70a264e939
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/entt/entity/view.hpp

+ 2 - 2
src/entt/entity/view.hpp

@@ -108,12 +108,12 @@ class basic_view<Entity, exclude_t<Exclude...>, Component...> final {
 
         view_iterator() ENTT_NOEXCEPT = default;
 
-        view_iterator & operator++() {
+        view_iterator & operator++() ENTT_NOEXCEPT {
             while(++it != last && !valid());
             return *this;
         }
 
-        view_iterator operator++(int) {
+        view_iterator operator++(int) ENTT_NOEXCEPT {
             view_iterator orig = *this;
             return ++(*this), orig;
         }