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

Made type_caster<Eigen::Map<T>> correctly consider T's constness #325

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

WKarel
Copy link
Contributor

@WKarel WKarel commented Oct 17, 2023

There is a flaw in type_caster<Eigen::Map>: instead of testing T's constness, it tests the constness of Map itself, which can never be const.
The writability of numpy.ndarray's returned for Eigen::Map is not tested yet, and so I have added respective tests.

@wjakob
Copy link
Owner

wjakob commented Oct 17, 2023

Thank you @WKarel !

@wjakob wjakob merged commit c087ebd into wjakob:master Oct 17, 2023
21 checks passed
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