Skip to content

Commit 4d95793

Browse files
committed
meta: minor changes
1 parent 0aa503e commit 4d95793

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/entt/meta/meta.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,10 +1716,6 @@ class meta_sequence_container::meta_iterator final {
17161716
return handle == other.handle;
17171717
}
17181718

1719-
[[nodiscard]] bool operator!=(const meta_iterator &other) const noexcept {
1720-
return !(*this == other);
1721-
}
1722-
17231719
[[nodiscard]] const any &base() const noexcept {
17241720
return handle;
17251721
}
@@ -1730,6 +1726,10 @@ class meta_sequence_container::meta_iterator final {
17301726
any handle{};
17311727
};
17321728

1729+
[[nodiscard]] inline bool operator!=(const meta_sequence_container::iterator &lhs, const meta_sequence_container::iterator &rhs) noexcept {
1730+
return !(lhs == rhs);
1731+
}
1732+
17331733
class meta_associative_container::meta_iterator final {
17341734
using vtable_type = void(const void *, std::pair<meta_any, meta_any> *);
17351735

@@ -1792,15 +1792,15 @@ class meta_associative_container::meta_iterator final {
17921792
return handle == other.handle;
17931793
}
17941794

1795-
[[nodiscard]] bool operator!=(const meta_iterator &other) const noexcept {
1796-
return !(*this == other);
1797-
}
1798-
17991795
private:
18001796
const meta_ctx *ctx{};
18011797
vtable_type *vtable{};
18021798
any handle{};
18031799
};
1800+
1801+
[[nodiscard]] inline bool operator!=(const meta_associative_container::iterator &lhs, const meta_associative_container::iterator &rhs) noexcept {
1802+
return !(lhs == rhs);
1803+
}
18041804
/*! @endcond */
18051805

18061806
/**

0 commit comments

Comments
 (0)