-
Notifications
You must be signed in to change notification settings - Fork 70
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
Drop unnecessary moving window filter pimpl #294
Conversation
This touches upon a point that I was going to file an issue about later on -- when the math classes here are templated on The documentation isn't clear on what types are permitted to use for Assuming that the library only supports C++'s native floating-point types, then I don't see any reason to place the function definitions in the header files. The implementation could move into the cc files by using explicit template instantiation over the set of supported template arguments. |
I think that's a good point. I wasn't around for the earlier iterations of ign-math, so I'm not sure what the intent was. I know that there is at least support for
I think this would be a reasonable approach. Perhaps @nkoenig or @chapulina could lend some insight? |
I don't have a lot of context on this class, I don't remember ever using it, and I couldn't find any code that uses it. I traced it back to this commit on Gazebo classic: gazebosim/gazebo-classic@16e1af9
I think that's ok. There'd be a bit of duplication, but the class is small enough... |
034d9dc
to
ab365ed
Compare
Added explicit instantiation for:
|
6247fdf
to
7855446
Compare
Codecov Report
@@ Coverage Diff @@
## main #294 +/- ##
==========================================
- Coverage 99.73% 99.57% -0.16%
==========================================
Files 70 71 +1
Lines 6406 6412 +6
==========================================
- Hits 6389 6385 -4
- Misses 17 27 +10
Continue to review full report at Codecov.
|
Blocked on #299 |
7855446
to
11bfc35
Compare
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
a81e045
to
13cdc5b
Compare
I don't have additional context on this class. This looks fine. |
Signed-off-by: Michael Carroll <[email protected]>
6e4d62d
to
f6d9392
Compare
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]>
334d575
to
7608fcf
Compare
Codecov Report
@@ Coverage Diff @@
## main #294 +/- ##
=======================================
Coverage 99.69% 99.69%
=======================================
Files 74 75 +1
Lines 6857 6863 +6
=======================================
+ Hits 6836 6842 +6
Misses 21 21
Continue to review full report at Codecov.
|
Signed-off-by: Michael Carroll <[email protected]>
Signed-off-by: Michael Carroll <[email protected]> Co-authored-by: Steve Peters <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good with clean CI
Came across this as I was deprecating in
ign-common
. Thepimpl
pattern doesn't make sense for a templated class since the implementation is ultimately exposed to downstream users.This breaks API/ABI, so I'm targeting main with it.
Note to maintainers: Remember to use Squash-Merge