Skip to content

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