-
Notifications
You must be signed in to change notification settings - Fork 19
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
Refactor the C++ version of unique_id so it can be included in more than one cpp file #7
Comments
Thanks for the report. This looks like a bug, and none of my test cases catch it. I'll try to construct a test for it, then fix it when I can demonstrate the error. Your "inline" suggestion makes sense to me. None of those functions seem large enough to be worth creating a separate .cpp file and a shared library to contain it. |
Reproducing this bug is easy: adding another .cpp file to the |
Well, I tried the inline approach and I got some difficulties for compiling (I don't remember what errors exactly, but was related to the underlying boost implementation), so I separated implementation and headers: |
Yes. I think you're right. The problem is that That will work for Indigo. But, I am reluctant to release an ABI-breaking change like that to Hydro at this point. I suppose we could consider releasing it to Hydro anyway, if necessary. Since no one had previously reported this bug, they must have only included |
According the ROS wiki page "used by" links for Hydro and Indigo, the only indexed packages using this one are ROCON components and also the geodesy package. Most of those references are in Python, not C++. So, we can probably release this fix to both distributions, if desired. |
I finally got back to working on this problem. Declaring everything Please run your test with this fix and let me know if it solves the original problem. If so, I will release it to both Hydro and Indigo. |
@corot: does the latest master using |
Even without further test verification, I am releasing this to Indigo and Jade. Do you need a Hydro release, too? |
Fixed for Indigo and Jade in release 1.0.5. |
necceesary thanks to [this fix](ros-geographic-info/unique_identifier#7)
Hi @jack-oquin, sorry for the delay. Works fine now, so I removed the wrapper. Thanks! |
Glad it fixes your problem. I released it to Indigo and Jade, but not Hydro. Do you need a Hydro release for this? |
We use indigo, so no problem for us. I think you don't need to bother to release on hydro |
Sounds good. Since Hydro is near end-of-life I see no need to release it there. |
Just put "inline" on each function should do the trick, or (more tedious) separate the implementation in a cpp. Otherwise, it's a pain to use is in multiple source files.
Or am I missing the right use of it? In that case, please feel free to close this, and... ideally give me a solution 🙏
The text was updated successfully, but these errors were encountered: