Fixed compile problem.

release/4.3a0
dellaert 2014-12-06 14:28:39 +01:00
parent d1fec1a90d
commit 491fd91af6
1 changed files with 4 additions and 1 deletions

View File

@ -74,10 +74,13 @@ namespace traits {
/// Define the trait that specifies Cyclic's identity element
template<size_t N> struct identity<Cyclic<N> > {
static const Cyclic<N> value = Cyclic<N>(0);
static const Cyclic<N> value;
typedef Cyclic<N> value_type;
};
template<size_t N>
const Cyclic<N> identity<Cyclic<N> >::value = Cyclic<N>(0);
/// Define the trait that asserts Cyclic is an additive group
template<size_t N> struct flavor<Cyclic<N> > {
typedef additive_tag type;