diff --git a/ChangeLog b/ChangeLog index d187b3be..3d3ed947 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-26 Tatsuhiro Tsujikawa + + Rewritten TripletGet. + * src/Triplet.h + 2010-09-26 Tatsuhiro Tsujikawa Rewritten TripletNthType. diff --git a/src/Triplet.h b/src/Triplet.h index c3988bf8..1b224bd9 100644 --- a/src/Triplet.h +++ b/src/Triplet.h @@ -107,8 +107,8 @@ struct TripletGet; template<> struct TripletGet<1> { - template - static T1 get(const Triplet& tri) + template + static typename TripletNthType::type get(const Triplet& tri) { return tri.first; } @@ -116,8 +116,8 @@ struct TripletGet<1> { template<> struct TripletGet<2> { - template - static T2 get(const Triplet& tri) + template + static typename TripletNthType::type get(const Triplet& tri) { return tri.second; } @@ -125,8 +125,8 @@ struct TripletGet<2> { template<> struct TripletGet<3> { - template - static T3 get(const Triplet& tri) + template + static typename TripletNthType::type get(const Triplet& tri) { return tri.third; }