Skip to content

Commit

Permalink
Override < operator in VlClassRef
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Oct 17, 2023
1 parent d3fb7e9 commit 4822f24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/verilated_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,10 @@ class VlClassRef final {
bool operator!=(const VlClassRef<T_OtherClass>& rhs) const {
return m_objp != rhs.m_objp;
};
template <typename T_OtherClass>
bool operator<(const VlClassRef<T_OtherClass>& rhs) const {
return m_objp < rhs.m_objp;
};
};

template <typename T, typename U>
Expand Down

0 comments on commit 4822f24

Please sign in to comment.