From 8f860c5828d8e0bd7a3e69cc8254de4da9286ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E6=B3=A5=E5=96=B5=E7=88=AA?= Date: Mon, 20 Oct 2025 16:22:03 +0800 Subject: [PATCH] fix: circular dependency between DPBin and DPSegment headers Resolve class dependency errors by correcting header inclusion order between DPBin and DPSegment classes. --- src/operation/iPL/source/module/detail_placer/database/DPBin.hh | 2 +- .../iPL/source/module/detail_placer/database/DPSegment.hh | 2 +- .../iPL/source/module/detail_placer/operation/NFSpread.hh | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/operation/iPL/source/module/detail_placer/database/DPBin.hh b/src/operation/iPL/source/module/detail_placer/database/DPBin.hh index 90ba779c3..95c588a3b 100644 --- a/src/operation/iPL/source/module/detail_placer/database/DPBin.hh +++ b/src/operation/iPL/source/module/detail_placer/database/DPBin.hh @@ -21,8 +21,8 @@ #include #include "DPNode.hh" -#include "DPSegment.hh" #include "data/Rectangle.hh" + namespace ipl{ class DPSegment; diff --git a/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh b/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh index 34108a636..bdf42005e 100644 --- a/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh +++ b/src/operation/iPL/source/module/detail_placer/database/DPSegment.hh @@ -20,12 +20,12 @@ #include +#include "DPBin.hh" #include "DPNode.hh" namespace ipl{ class DPRow; -class DPBin; class DPSegment{ diff --git a/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh b/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh index 213e29afc..6219a36e5 100644 --- a/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh +++ b/src/operation/iPL/source/module/detail_placer/operation/NFSpread.hh @@ -27,6 +27,8 @@ #include "database/DPDatabase.hh" #include "DPOperator.hh" #include "database/DPNode.hh" +#include "database/DPBin.hh" +#include "database/DPSegment.hh" namespace ipl { -- Gitee