Skip to content

Commit c192697

Browse files
make vtr::operator<(const vtr::StrongId<tag, T, sentinel>&, const vtr::StrongId<tag, T, sentinel>&) noexcept
1 parent adc32ac commit c192697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/libvtrutil/src/vtr_strong_id.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ template<typename tag, typename T, T sentinel>
167167
constexpr bool operator!=(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
168168

169169
template<typename tag, typename T, T sentinel>
170-
constexpr bool operator<(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
170+
constexpr bool operator<(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs) noexcept;
171171

172172
template<typename tag, typename T, T sentinel>
173173
std::ostream& operator<<(std::ostream& out, const StrongId<tag, T, sentinel>& rhs);
@@ -241,7 +241,7 @@ constexpr bool operator!=(const StrongId<tag, T, sentinel>& lhs, const StrongId<
241241

242242
///@brief operator < Needed for std::map-like containers
243243
template<typename tag, typename T, T sentinel>
244-
constexpr bool operator<(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs) {
244+
constexpr bool operator<(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs) noexcept {
245245
return lhs.id_ < rhs.id_;
246246
}
247247

0 commit comments

Comments
 (0)