Skip to content
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

Wrapper FMT header for compatibility #615

Merged
merged 1 commit into from
Sep 24, 2024
Merged

Conversation

v4hn
Copy link
Contributor

@v4hn v4hn commented Sep 23, 2024

for special eigen formatter, which is not available in fmt9+ (found on Debian testing).

fmtlib/fmt#3465
https://stackoverflow.com/a/73755864/21260084

@rhaschke Not sure whether you are ok with the generic wrapper header as you usually argue for minimal includes. The concrete issue currently only affects a single location where an Eigen datatype is formatted. But I believe as we use libfmt all over the place (as you introduced at some point), I would also expect to be able to format Eigen datastructures everywhere without additional includes & helpers.

for special eigen formatter, which is not available in fmt9

fmtlib/fmt#3465
https://stackoverflow.com/a/73755864/21260084
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.77%. Comparing base (6b0f2c8) to head (f902533).
Report is 42 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #615      +/-   ##
==========================================
- Coverage   58.82%   57.77%   -1.05%     
==========================================
  Files          91      132      +41     
  Lines        8623    10689    +2066     
  Branches        0      959     +959     
==========================================
+ Hits         5072     6174    +1102     
- Misses       3551     4468     +917     
- Partials        0       47      +47     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

In principle I approve. But the name of the wrapper include (fmt_p.h) is too cryptic.
What is the meaning of _p?
I suggest simply fmt.h or fmt_wrapper.h.

@v4hn
Copy link
Contributor Author

v4hn commented Sep 24, 2024

But the name of the wrapper include (fmt_p.h) is too cryptic.
What is the meaning of _p? I suggest simply fmt.h or fmt_wrapper.h.

You introduced that suffix and it implies that the header will not be installed.
I did not want to provide such a generic wrapper with MTC in general - also to avoid potential ODR violations -, but still provide it for all the subfolders in the core package.

@rhaschke
Copy link
Contributor

You introduced that suffix and it implies that the header will not be installed.

I see. There the _p suffix stands for private. I'm okish to use that suffix here as well - now that I know ;-)
But, I would be ok as well to install the header. This doesn't immediately trigger ODR violations.

@v4hn
Copy link
Contributor Author

v4hn commented Sep 24, 2024

now that I know ;-)

🃏

But, I would be ok as well to install the header. This doesn't immediately trigger ODR violations.

I'm aware. I prefer not to install it unless/until we need it in some very related downstream package too.

@rhaschke
Copy link
Contributor

It is easily possible that we will use fmt in another package of this repo (aside from core) in the future.

@v4hn v4hn merged commit 721ff35 into moveit:master Sep 24, 2024
7 checks passed
@v4hn
Copy link
Contributor Author

v4hn commented Sep 24, 2024

until we need it

It's not an external API for now and it takes one sed to change it if needed. 🐕

@v4hn v4hn deleted the pr-fmt9-eigen-fix branch September 30, 2024 12:09
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