diff --git a/gtsam/base/types.h b/gtsam/base/types.h index 91614b4f3..935ab685e 100644 --- a/gtsam/base/types.h +++ b/gtsam/base/types.h @@ -109,6 +109,9 @@ namespace gtsam { /** Operator to access the value */ T& operator*() { return value; } + /** Operator to access the value */ + const T& operator*() const { return value; } + /** Implicit conversion allows use in if statements for bool type, etc. */ operator T() const { return value; } };