๐ฉโ๐พ Don't use std::pow with integers in Vectors #207
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.
๐ฆ Bug fix
Summary
ign-gazebo
has the following Windows warning tracing back toign-math
:We don't have lots of tests using integers as templates, so we didn't catch that here. It would be interesting to add tests for that.
I noticed other uses of
std::pow
in the codebase in classes likeInertial
,MassMatrix3
,Sphere
, etc. Some of them don't have integer typedefs (i.e. there's noInertiali
), but some of them do (Spherei
). I'm not sure we have valid use cases for integer shapes, so I didn't add tests for them or updated thestd::pow
usage for now.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ๐ธ
https://github.com/osrf/buildfarmer/issues/181