Fix compilation of test_Icosphere with Eigen 3.4 #1613
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While debugging a build failure in the
dartsim
conda-forge package (see conda-forge/dartsim-feedstock#16), I noticed the following build failure when building dart with Eigen 3.4 :Building exactly the same code with exactly the same dependency except for changing Eigen from 3.4.0 to 3.3.9 was working fine, so I am quite sure that this problem is related to Eigen 3.4.0 . I am not sure about the exact nature of the error as I am not familiar with initializations of std containers of Eigen vectors, but according to my tests it seems that the error is fixed by removing a pair of curly bracket solved the problem while ensuring that everything still compiles fine on Eigen 3.3.9 , and this is proposed in this PR.
However, things to check accurately:
Before creating a pull request
clang-format
Before merging a pull request
CHANGELOG.md