Skip to content

Commit 1f08ac4

Browse files
make RouteTreeNode operators noexcept
1 parent 772c2aa commit 1f08ac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/route/route_tree.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,10 @@ class RouteTreeNode {
272272
constexpr bool is_leaf(void) const { return _is_leaf; }
273273

274274
/** Equality operator. For now, just compare the addresses */
275-
friend bool operator==(const RouteTreeNode& lhs, const RouteTreeNode& rhs) {
275+
friend bool operator==(const RouteTreeNode& lhs, const RouteTreeNode& rhs) noexcept {
276276
return &lhs == &rhs;
277277
}
278-
friend bool operator!=(const RouteTreeNode& lhs, const RouteTreeNode& rhs) {
278+
friend bool operator!=(const RouteTreeNode& lhs, const RouteTreeNode& rhs) noexcept {
279279
return !(lhs == rhs);
280280
}
281281

0 commit comments

Comments
 (0)