Skip to content

computeTreeLoopLeftAreas: fix build with old libc++ (ambiguous distance) - #7655

Merged
Fedr merged 1 commit into
masterfrom
fix-span-distance-adl
Dec 1, 2026
Merged

Fedr merged 1 commit into
masterfrom
fix-span-distance-adl

Conversation

@Fedr

@Fedr Fedr commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Fixes the build of MRInTreePathBuilder.cpp with the libc++ of Xcode 14.2 (MeshInspector's macOS x64 job): its std::span( first, last ) constructor calls distance unqualified, and for MR::EdgeId pointers argument-dependent lookup also finds MR::distance from MRMeshFwd.h:

span:406:114: error: call to 'distance' is ambiguous
MRInTreePathBuilder.cpp:276:54: note: in instantiation of member function 'std::span<const MR::Id<MR::EdgeTag>>::span' requested here

The span is now built from a pointer and a count.

Test plan: CI (MeshLib's own macOS jobs use a newer SDK, so they did not catch it).

Generated with Claude Code

…old libc++

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Fedr
Fedr merged commit 12b3c2a into master Dec 1, 2026
63 checks passed
@Fedr
Fedr deleted the fix-span-distance-adl branch December 1, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant