diff --git a/gtsam/nonlinear/ExpressionFactor.h b/gtsam/nonlinear/ExpressionFactor.h index 4bb8da685..85527f6dc 100644 --- a/gtsam/nonlinear/ExpressionFactor.h +++ b/gtsam/nonlinear/ExpressionFactor.h @@ -34,6 +34,9 @@ namespace gtsam { * such instances, the user should declare derived classes from this template, * implementing expresion(), serialize(), clone(), print(), and defining the * corresponding `struct traits : public Testable {}`. + * + * \tparam T Type for measurements. + * */ template class ExpressionFactor: public NoiseModelFactor { @@ -279,6 +282,9 @@ class ExpressionFactor2 : public ExpressionFactor { "ExpressionFactor", boost::serialization::base_object >(*this)); } }; +/// traits +template +struct traits> : public Testable> {}; // ExpressionFactor2 }// \ namespace gtsam