diff --git a/gtsam/nonlinear/Values.h b/gtsam/nonlinear/Values.h index 4a6ec092b..8b8fbc71c 100644 --- a/gtsam/nonlinear/Values.h +++ b/gtsam/nonlinear/Values.h @@ -300,7 +300,7 @@ namespace gtsam { */ template Filtered - filter(const boost::function& filterFcn = &_truePredicate); + filter(const boost::function& filterFcn = &_truePredicate); /** * Return a filtered view of this Values class, without copying any data. @@ -338,7 +338,7 @@ namespace gtsam { */ template ConstFiltered - filter(const boost::function& filterFcn = _truePredicate) const; + filter(const boost::function& filterFcn = &_truePredicate) const; private: // Filters based on ValueType (if not Value) and also based on the user-