Skip to content

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
@garth-wells garth-wells added this pull request to the merge queue Mar 15, 2025
Merged via the queue into FEniCS:main with commit 30d67bc Mar 15, 2025
32 checks passed
@schnellerhase schnellerhase deleted the public_mdspan_config branch March 17, 2025 13:27
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