Skip to content

Resolve compile issue with recent Eigen version #1

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

Merged
merged 2 commits into from
Jul 12, 2021
Merged

Resolve compile issue with recent Eigen version #1

merged 2 commits into from
Jul 12, 2021

Conversation

danuo
Copy link

@danuo danuo commented Dec 18, 2020

This fix is necessary to compile g2opy on all platforms,
using recent version of Eigen
see issue at uoip#16

original commit message:
Quaterniond::w returns const double & instead of double to work with
Eigen CoeffReturnType

This fix is necessary to compile g2opy on all platforms,
using recent version of Eigen
see issue at uoip#16

original commit message:
Quaterniond::w returns const double & instead of double to work with
Eigen CoeffReturnType
Copy link

@shaoxh shaoxh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

.def("x", (const double& (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::x)
.def("y", (const double& (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::y)
.def("z", (const double& (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::z)
.def("w", (const double& (Eigen::Quaterniond::*) () const) &Eigen::Quaterniond::w)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THIS fixed the compile problems

@shrddr shrddr merged commit 2d2fd72 into shrddr:master Jul 12, 2021
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.

3 participants