Skip to content

Qualify unqualified cout/endl in vtkPlusPolydataForce#1281

Open
hjmjohnson wants to merge 1 commit into
PlusToolkit:masterfrom
hjmjohnson:fix-unqualified-cout
Open

Qualify unqualified cout/endl in vtkPlusPolydataForce#1281
hjmjohnson wants to merge 1 commit into
PlusToolkit:masterfrom
hjmjohnson:fix-unqualified-cout

Conversation

@hjmjohnson

Copy link
Copy Markdown

vtkPlusPolydataForce.cxx used bare cout/endl, which no longer resolve under current libc++ (use of undeclared identifier 'cout'). Add a using directive so it compiles. Independent of ITK/VTK version.

Details

Surfaced while building PlusLib against ITK 6 with a recent clang/libc++, but the cause is standard-library strictness, not ITK. One of a set of independent ITK-6 compatibility PRs.

vtkPlusPolydataForce.cxx used bare cout/endl, which relied on a transitive
using-directive that newer libc++ no longer provides, so it fails to compile
with "use of undeclared identifier 'cout'". Add a using directive so the file
builds. Independent of ITK/VTK version.
@hjmjohnson hjmjohnson marked this pull request as ready for review July 6, 2026 12:39
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