Skip to content

Commit

Permalink
Merge pull request #1645 from borglab/fix/OptionalNone
Browse files Browse the repository at this point in the history
Fix usage of OptionalNone in a different namespace
  • Loading branch information
ProfFan authored Sep 28, 2023
2 parents 4bece8e + fbdd602 commit 8d995c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtsam/nonlinear/NonlinearFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace gtsam {
* Had to use the static_cast of a nullptr, because the compiler is not able to
* deduce the type of the nullptr when expanding the evaluateError templates.
*/
#define OptionalNone static_cast<Matrix*>(nullptr)
#define OptionalNone static_cast<gtsam::Matrix*>(nullptr)

/** This typedef will be used everywhere boost::optional<Matrix&> reference was used
* previously. This is used to indicate that the Jacobian is optional. In the future
Expand Down

0 comments on commit 8d995c9

Please sign in to comment.