fix(v1.0.1): VDE-016 — using declarations at vde::brep scope, not inside anonymous ns
CI / Build & Test (push) Failing after 34s
CI / Release Build (push) Failing after 25s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled

Root cause: using declarations inside anonymous namespace don't propagate
to public functions defined after the anonymous namespace closes.

Fix:
- using SSICurveData; and using ClassResult; at vde::brep scope
- Remove self-referencing using vde::brep::ClassResult
- Remove duplicate using from inside anonymous namespace
This commit is contained in:
茂之钳
2026-07-28 07:48:28 +08:00
parent d9963d8e85
commit 477d13dc80
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
--- ---
id: VDE-016 id: VDE-016
status: open status: fixed
severity: critical severity: critical
category: bug category: bug
date: 2026-07-27 date: 2026-07-27
+3 -5
View File
@@ -41,7 +41,8 @@ using core::AABB3D;
AABB3D face_bounds(const BrepModel& body, int face_id); AABB3D face_bounds(const BrepModel& body, int face_id);
Vector3D face_normal(const BrepModel& body, int face_id); Vector3D face_normal(const BrepModel& body, int face_id);
struct SSICurveData; struct SSICurveData;
using vde::brep::ClassResult; using ClassResult;
using SSICurveData;
/// SSI curve data for a face pair /// SSI curve data for a face pair
struct SSICurveData { struct SSICurveData {
@@ -54,12 +55,9 @@ struct SSICurveData {
}; };
namespace { namespace {
// GCC two-phase lookup: bring enclosing namespace types into scope
using vde::brep::SSICurveData;
using vde::brep::ClassResult;
// ═══════════════════════════════════════════════════════════ // ═══════════════════════════════════════════════════════════
// Constants & types // Mesh caching
// ═══════════════════════════════════════════════════════════ // ═══════════════════════════════════════════════════════════
/// ClassResult is now defined in ssi_boolean.h (public API) /// ClassResult is now defined in ssi_boolean.h (public API)