From 13ce0e59f0e2fbbd7fb244d192f19a0799a0b101 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Thu, 22 Mar 2012 17:46:39 +0000 Subject: [PATCH] Added typedef for const shared_ptr --- gtsam/nonlinear/Values.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtsam/nonlinear/Values.h b/gtsam/nonlinear/Values.h index bdd1739da..76bcfdfb0 100644 --- a/gtsam/nonlinear/Values.h +++ b/gtsam/nonlinear/Values.h @@ -84,6 +84,9 @@ namespace gtsam { /// A shared_ptr to this class typedef boost::shared_ptr shared_ptr; + /// A const shared_ptr to this class + typedef boost::shared_ptr const_shared_ptr; + /// A key-value pair, which you get by dereferencing iterators struct KeyValuePair { const Key key; ///< The key