From 6a07182b0d2906fbe831e53b484f23bb82d39e83 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 26 Sep 2010 06:56:26 +0000 Subject: [PATCH] 2010-09-26 Tatsuhiro Tsujikawa Use class instead of typename for Triplet template parameter. * src/Triplet.h --- ChangeLog | 5 +++++ src/Triplet.h | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3d3ed947..fc22c664 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-26 Tatsuhiro Tsujikawa + + Use class instead of typename for Triplet template parameter. + * src/Triplet.h + 2010-09-26 Tatsuhiro Tsujikawa Rewritten TripletGet. diff --git a/src/Triplet.h b/src/Triplet.h index 1b224bd9..9728f71a 100644 --- a/src/Triplet.h +++ b/src/Triplet.h @@ -84,20 +84,20 @@ Triplet makeTriplet(const T1& t1, const T2& t2, const T3& t3) return Triplet(t1, t2, t3); } -template +template struct TripletNthType; -template +template struct TripletNthType { typedef typename Triplet::first_type type; }; -template +template struct TripletNthType { typedef typename Triplet::second_type type; }; -template +template struct TripletNthType { typedef typename Triplet::third_type type; }; @@ -135,7 +135,7 @@ struct TripletGet<3> { template class Triplet2Pair { public: - template + template std::pair::type, typename TripletNthType::type> operator()(const Triplet& tri) const