diff --git a/gtsam/base/LieScalar.h b/gtsam/base/LieScalar.h index 51439c6f1..505f06921 100644 --- a/gtsam/base/LieScalar.h +++ b/gtsam/base/LieScalar.h @@ -17,6 +17,7 @@ #pragma once +#include #include namespace gtsam { @@ -24,7 +25,7 @@ namespace gtsam { /** * LieScalar is a wrapper around double to allow it to be a Lie type */ - struct LieScalar { + struct LieScalar : public DerivedValue { /** default constructor */ LieScalar() : d_(0.0) {} diff --git a/gtsam/nonlinear/Values-inl.h b/gtsam/nonlinear/Values-inl.h index dd5b29fbd..8422ab1f6 100644 --- a/gtsam/nonlinear/Values-inl.h +++ b/gtsam/nonlinear/Values-inl.h @@ -22,6 +22,8 @@ * which is also a manifold element, and hence supports operations dim, retract, and localCoordinates. */ +#pragma once + #include #include #include