-
Notifications
You must be signed in to change notification settings - Fork 804
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
Fixing std::optional handling being redundant in Boost version > 1.80 #1721
Conversation
We're looking to remove boost altogether so we probably don't need this PR |
Also the PR comment doesn't mention what the issue is or what it fixes. |
I can fix the comment. That is for code review. I hope you will fix the boost issue soon!. |
So this is for std::optional? |
@talregev Could you edit the title to say the exact issue this fixes? Thank you very much! |
Also is this change in boost happening in 1.80 only? Could you link the Boost change note as well? |
I don't mind changing the title. I added CI there. You can write me the title that it will be more informative for you. @ProfFan Thank you for opening this PR again. |
As I stated in the first msg, I am not sure what version this was happening. |
Please check the Boost release notes. Title could be 'Fixing std::optional handling being redundant in Boost version > 1.xx' But be sure to check the version number, we could accidentally break others' code! |
Can you help me and search also?
|
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.
Good, please change the title and add a comment above the code that says // See CHANGELOG: <link>
Can you write the exact title you want? |
@@ -11,6 +11,8 @@ | |||
|
|||
// Defined only if boost serialization is enabled | |||
#ifdef GTSAM_ENABLE_BOOST_SERIALIZATION | |||
// Only for old boost |
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.
// Only for old boost | |
// NOTE: Added in Boost 1.80 | |
// See Boost CHANGELOG: https://www.boost.org/users/history/version_1_80_0.html |
I don't think this is the cause of the issue. I looked at the commit history of Essentially, the authors fixed the inclusion of |
I looked into it more closely, and the real issue is this PR: https://github.com/boostorg/serialization/pull/163/files It got merged on 09/02/2023 and |
Since I got no response from @talregev I'll just merge this PR so the issue gets fixed fast and we don't waste any more cycles on this. @varunagrawal I believe the actual commit is boostorg/serialization@61a2b12, the PR you linked was reverted. But you are right, correct boost version is 1.84 due to the addition of std::optional serialization. Could you rebase on |
In macos vm, recently we get a newer version of boost (1.84).
They already implemented in the new version the function that gtsam implemented.
So I am not sure the correct version of boost that it begin to happen, so I put version 1.80.
We can tune the version later (when we have another issue similar to that in different boost version).
@varunagrawal @ProfFan
Thank you for your time and effort for review this PR.