From 00c09744e121f6857e84ac80127017f952eb2c76 Mon Sep 17 00:00:00 2001 From: Alex Cunningham Date: Thu, 26 Apr 2012 02:36:56 +0000 Subject: [PATCH] Fixed warning due to struct/class mismatch in concept check --- gtsam/geometry/concepts.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtsam/geometry/concepts.h b/gtsam/geometry/concepts.h index 774e0c78a..0a26ad43d 100644 --- a/gtsam/geometry/concepts.h +++ b/gtsam/geometry/concepts.h @@ -25,10 +25,12 @@ namespace gtsam { * for each. */ template -struct PoseConcept { +class PoseConcept { +public: typedef typename POSE::Translation Translation; typedef typename POSE::Rotation Rotation; +private: static Rotation checkRotationMemberAccess(const POSE& p) { return p.rotation(); } @@ -44,7 +46,8 @@ struct PoseConcept { * range with derivatives. */ template -struct RangeMeasurementConcept { +class RangeMeasurementConcept { +private: static double checkRangeMeasurement(const V1& x, const V2& p) { return x.range(p); }