Skip to content

Commit 4e8fa98

Browse files
committed
pad: fix header inclusion and use ranges::find
Signed-off-by: Peter Gadfort <[email protected]>
1 parent c7910f0 commit 4e8fa98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pad/src/RDLRouter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "odb/db.h"
2929
#include "odb/dbObject.h"
3030
#include "odb/dbTransform.h"
31+
#include "odb/dbTypes.h"
3132
#include "odb/geom.h"
3233
#include "pad/ICeWall.h"
3334
#include "utl/Logger.h"
@@ -1802,7 +1803,7 @@ void RDLRouter::populateObstructions(const std::vector<odb::dbNet*>& nets)
18021803
// Get already routed nets obstructions, excluding those that will be routed
18031804
// now
18041805
for (auto* net : block_->getNets()) {
1805-
const bool is_routing_net = std::find(nets.begin(), nets.end(), net) != nets.end();
1806+
const bool is_routing_net = std::ranges::find(nets, net) != nets.end();
18061807

18071808
for (auto* swire : net->getSWires()) {
18081809
if (is_routing_net && swire->getWireType() != odb::dbWireType::FIXED) {

0 commit comments

Comments
 (0)