Skip to content

Commit

Permalink
fix Windows CI issue: VALUE happens to have the same name in PriorFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
gchenfc committed Dec 9, 2021
1 parent 018213e commit 84e873e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtsam/nonlinear/NonlinearFactor.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,9 +413,9 @@ class NoiseModelFactorN
/// N is the number of variables (N-way factor)
enum { N = sizeof...(VALUES) };

/** The type of the i'th template param can be obtained as VALUE<I> */
/** The type of the i'th template param can be obtained as X_<I> */
template <int I, typename std::enable_if<(I < N), bool>::type = true>
using VALUE = typename std::tuple_element<I, std::tuple<VALUES...>>::type;
using X_ = typename std::tuple_element<I, std::tuple<VALUES...>>::type;

protected:
using Base = NoiseModelFactor;
Expand Down

0 comments on commit 84e873e

Please sign in to comment.