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

move publisher and subscriber get_keyexpr implementation from impl.hxx to api.hxx #87

Closed
wants to merge 3 commits into from

Conversation

lucasw
Copy link

@lucasw lucasw commented Dec 12, 2023

I haven't tested much (ctest tests all passed locally for me though) but this appears to solve the linker issue in eclipse-zenoh/roadmap#105

All the other get_keyexpr() implementations were already in api.hxx and not impl.hxx, so this matches this pattern (but maybe not the intent of the api-impl split).

@lucasw
Copy link
Author

lucasw commented Dec 14, 2023

I've added a very minimal example that is built in the github action (but possibly you don't want that as a part of CI feel free to change it or remove it), and there's another branch without the moved key_expr that demonstrates the issue: https://github.com/lucasw/zenoh-cpp/actions?query=branch%3Amultiple_declaration_ci++ - a specific example

@lucasw lucasw force-pushed the multiple_get_keyexpr branch 2 times, most recently from a10890d to f549284 Compare December 14, 2023 18:48
@Mallets
Copy link
Member

Mallets commented Dec 16, 2023

Thanks @lucasw for your PR. We will have a look at it as soon as possible.

@Mallets Mallets requested a review from milyin December 16, 2023 10:29
Copy link
Contributor

@milyin milyin left a comment

Choose a reason for hiding this comment

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

The fix for missing inline is very important and should be integrated before release. But change in example is not directly related to this missing inline fix and need to be adjusted to existing 'simple' example (btw I like the idea to rename them to 'standalone', this name better reflects the purpose)
I'm going to make separate PR with fix for inline issue only.
Later need to make systematic test for this issue: #55

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what's the purpose of this additional .cpp file? Also all other files in project have .cxx extension

Copy link
Contributor

Choose a reason for hiding this comment

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

A, ok, I see, that's to test the linker error on multiple include. Anyway better to mention this explicitly and do this in tests instead of examples.

Copy link
Contributor

Choose a reason for hiding this comment

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

This mostly repeats functionality of tests https://github.com/eclipse-zenoh/zenoh-cpp/tree/main/examples/simple
Though I like the name 'standalone' and agree that example in 'simple' can be made a bit more simple

@milyin milyin mentioned this pull request Dec 19, 2023
@milyin
Copy link
Contributor

milyin commented Dec 21, 2023

Bug fixed in separate PR #55, thank you @lucasw
The validation that no inlines are forgotten should be done in tests, this will close issue #55
The update to simple examples is also good idea, added task to not forget it #92

@milyin milyin closed this Dec 21, 2023
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