Skip to content

XZHermiteSpline: Move implementation_type to bout::details#3317

Merged
bendudson merged 3 commits intonextfrom
next-fix-xzhermitespline
Mar 11, 2026
Merged

XZHermiteSpline: Move implementation_type to bout::details#3317
bendudson merged 3 commits intonextfrom
next-fix-xzhermitespline

Conversation

@bendudson
Copy link
Copy Markdown
Contributor

Clang prints "internal linkage" warnings then fails to link when implementation_type is in an anonymous namespace.

ChatGPT says "In C++, if a template argument involves a type/value with internal linkage, the resulting template specialization (and therefore its member functions) effectively become TU-local too.

Moving implementation_type to bout::details namespace resolves the warnings and linker errors.

bendudson and others added 3 commits March 11, 2026 13:25
Clang prints "internal linkage" warnings then fails to link when
implementation_type is in an anonymous namespace.

ChatGPT says "In C++, if a template argument involves a type/value
with internal linkage, the resulting template specialization (and
therefore its member functions) effectively become TU-local too.

Moving implementation_type to bout::details namespace resolves the
warnings and linker errors.
@bendudson bendudson merged commit f78a8bc into next Mar 11, 2026
1 check passed
@bendudson bendudson deleted the next-fix-xzhermitespline branch March 11, 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.

1 participant