From 491fd91af69a414f468811d056304ee80788c3d5 Mon Sep 17 00:00:00 2001 From: dellaert Date: Sat, 6 Dec 2014 14:28:39 +0100 Subject: [PATCH] Fixed compile problem. --- gtsam/geometry/Cyclic.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtsam/geometry/Cyclic.h b/gtsam/geometry/Cyclic.h index 85602d12d..71c7cbc4a 100644 --- a/gtsam/geometry/Cyclic.h +++ b/gtsam/geometry/Cyclic.h @@ -74,10 +74,13 @@ namespace traits { /// Define the trait that specifies Cyclic's identity element template struct identity > { - static const Cyclic value = Cyclic(0); + static const Cyclic value; typedef Cyclic value_type; }; +template +const Cyclic identity >::value = Cyclic(0); + /// Define the trait that asserts Cyclic is an additive group template struct flavor > { typedef additive_tag type;