diff --git a/matlab.h b/matlab.h index 1be686ff4..dfc0117e7 100644 --- a/matlab.h +++ b/matlab.h @@ -116,8 +116,8 @@ namespace gtsam { "addMeasurements: J and Z must have same number of entries"); for (int k = 0; k < Z.cols(); k++) { graph.push_back( - make_shared > - (Point2(Z(0, k), Z(1, k)), model, i, J(k), K)); + boost::make_shared > + (Point2(Z(0, k), Z(1, k)), model, i, Key(J(k)), K)); } }