From 519ad721399d3d64640c6509afbfc48487bdd81e Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Wed, 22 Aug 2012 22:40:39 +0000 Subject: [PATCH] Made explicit instantiations in header file inline to avoid duplicate definition --- gtsam_unstable/slam/PoseTranslationPrior.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtsam_unstable/slam/PoseTranslationPrior.h b/gtsam_unstable/slam/PoseTranslationPrior.h index ba023c0e3..9fc2bb423 100644 --- a/gtsam_unstable/slam/PoseTranslationPrior.h +++ b/gtsam_unstable/slam/PoseTranslationPrior.h @@ -25,8 +25,8 @@ bool isRotFirst() { } // Instantiate for common poses -template<> bool isRotFirst() { return true; } -template<> bool isRotFirst() { return false; } +template<> inline bool isRotFirst() { return true; } +template<> inline bool isRotFirst() { return false; } } // \namespace pose_traits