Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose and enforce compile time configuration of mdspan #903

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

schnellerhase
Copy link
Contributor

@schnellerhase schnellerhase commented Feb 14, 2025

When using basix as a third-party library within a C++23 compliant project the include of mdspan will trigger a default use of the bracket operator [], however basix currently relies on parentheses based element access and thus compilation is not possible (especially due to presence of mdspan based computations in the basix headers).

This (re-)adds the public config for the mdspan headers. Previously removed after a comment at #844 (comment).

Since basix does not install any headers during the python build, we do not need to (re-)add this in the Python config.

@schnellerhase schnellerhase changed the title Expose and enforce compile time configuation of mdspan Expose and enforce compile time configuration of mdspan Feb 14, 2025
@schnellerhase schnellerhase marked this pull request as ready for review February 14, 2025 14:11
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