Skip to content

Commit 7efa841

Browse files
Fix StrongId operator noexcept mismatch causing private member access errors
1 parent 1f08ac4 commit 7efa841

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
@@ -211,9 +211,9 @@ class StrongId {
211211
* Note that since these are templated functions we provide an empty set of template parameters
212212
* after the function name (i.e. <>)
213213
*/
214-
friend constexpr bool operator== <>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
214+
friend constexpr bool operator== <>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs) noexcept;
215215
///@brief != operator
216-
friend constexpr bool operator!= <>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
216+
friend constexpr bool operator!= <>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs) noexcept;
217217
///@brief < operator
218218
friend constexpr bool operator< <>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs) noexcept;
219219

0 commit comments

Comments
 (0)