Fixed warning due to struct/class mismatch in concept check

release/4.3a0
Alex Cunningham 2012-04-26 02:36:56 +00:00
parent b8c5bf4df9
commit 00c09744e1
1 changed files with 5 additions and 2 deletions

View File

@ -25,10 +25,12 @@ namespace gtsam {
* for each. * for each.
*/ */
template<class POSE> template<class POSE>
struct PoseConcept { class PoseConcept {
public:
typedef typename POSE::Translation Translation; typedef typename POSE::Translation Translation;
typedef typename POSE::Rotation Rotation; typedef typename POSE::Rotation Rotation;
private:
static Rotation checkRotationMemberAccess(const POSE& p) { static Rotation checkRotationMemberAccess(const POSE& p) {
return p.rotation(); return p.rotation();
} }
@ -44,7 +46,8 @@ struct PoseConcept {
* range with derivatives. * range with derivatives.
*/ */
template<class V1, class V2> template<class V1, class V2>
struct RangeMeasurementConcept { class RangeMeasurementConcept {
private:
static double checkRangeMeasurement(const V1& x, const V2& p) { static double checkRangeMeasurement(const V1& x, const V2& p) {
return x.range(p); return x.range(p);
} }