Skip to content

Add missing standard includes (<cstdlib>, <algorithm>) - #142

Merged
dgirardeau merged 2 commits into
CloudCompare:masterfrom
Tobias-Fischer:missing-std-includes
Nov 2, 2026
Merged

dgirardeau merged 2 commits into
CloudCompare:masterfrom
Tobias-Fischer:missing-std-includes

Conversation

@Tobias-Fischer

Copy link
Copy Markdown
Contributor

CCCoreLib no longer compiles with clang/libc++ 23 (conda-forge's current macOS toolchain): libc++ stopped including these headers indirectly.

  • CloudSamplingTools.cpp uses rand without <cstdlib>
  • ScalarField.h uses std::fill without <algorithm>

Both includes are added; no other change. Builds again with clang 23 / libc++ 23 on macOS arm64, and the CloudCompare conda package built on top of it passes its tests.

Tobias-Fischer and others added 2 commits November 3, 2026 05:47
…ncludes it indirectly)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dgirardeau
dgirardeau merged commit ff05f35 into CloudCompare:master Nov 2, 2026
4 checks passed
@Tobias-Fischer
Tobias-Fischer deleted the missing-std-includes branch November 2, 2026 21:09
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.

2 participants