-
Notifications
You must be signed in to change notification settings - Fork 795
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
fix: add GTSAM_USE_BOOST_FEATURES to definitions #1995
fix: add GTSAM_USE_BOOST_FEATURES to definitions #1995
Conversation
Thanks, but I might not fully understand then: I checked and we don't do this for GTSAM_ENABLE_BOOST_SERIALIZATION, but we can still branch on that in code. Why is GTSAM_USE_BOOST_FEATURES different? |
Oh, right. The |
Well, I guess my question was the other way :-) Why can we branch on GTSAM_ENABLE_BOOST_SERIALIZATION currently? And could we use the same mechanism to branch on GTSAM_USE_BOOST_FEATURES? It seems the |
right :-) |
Note, your test is compile time. All macro pre-processing is gone at runtime. |
OK, got it. GTSAM is using https://github.com/borglab/gtsam/blob/develop/gtsam/config.h.in |
a5170c0
to
c344e6e
Compare
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.
Ah ! Nice, LGTM :-) I will kick off CI and we can merge.
FYI Also sorry I didn't see this before, was busy with other stuff. Else we could have fixed this sooner. :) |
This fixes the issue #1994 and some issues mentioned in #1967 and #1981.
The change defines the proper identifier if
GTSAM_USE_BOOST_FEATURES
option is set in CMakeLists.txt.It's used in:
gtsam/gtsam/base/concepts.h
Lines 11 to 24 in 7b56d66
...and without it the compiler throws
BOOST_CONCEPT_USAGE
redefinition error.