-
Notifications
You must be signed in to change notification settings - Fork 768
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
Overload +=
, ,
operator
#1558
Overload +=
, ,
operator
#1558
Conversation
@@ -53,45 +49,6 @@ class BayesTree; | |||
|
|||
class HybridValues; | |||
|
|||
/** Helper */ |
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.
Got rid of all of these since they were needed for list_inserter
only.
@@ -22,13 +22,6 @@ | |||
|
|||
#include <gtsam/base/Testable.h> | |||
|
|||
#ifdef GTSAM_USE_BOOST_FEATURES |
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.
Did some cleaning up.
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.
Very cool, but before I approve, is it still backwards compatible with boost? The list inserter pattern was in our code for a long time and, while we eradicated, users might have copied it in their code.
@dellaert it should be backwards compatible with boost. From my understanding, That being said, since we're killing boost in the current version, users would anyway have to update their code for this new release and this is just 1 extra, albeit small, change. |
Can you verify it is? We are not killing boost, we are allowing people to compile without boost. Users that are OK with boost should not have to update their code, as I remember. |
@dellaert I ran all unit tests with |
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.
Cool, good additions !!!
@varunagrawal please merge and delete branch at your leisure. |
Overloaded the
+=
operator in theOrdering
class so we can append keys as:Also overloaded the comma
,
operator, so we can append in a style similar to Boost's Assign module which was the previous way:Similarly overloaded operators for
FactorGraph
. Added relevant unit tests for both of these classes.