Skip to content

Commit 6e86fbe

Browse files
committed
Update for old template reduction
this is a more explicit template deduction which is not needed for modern compilers but older compilers
1 parent e81dbe3 commit 6e86fbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/NGroup.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class RInterval : public RUnit<T>
131131
};
132132

133133
template<typename T>
134-
class RLog : public RUnit<T>
134+
class RLog : public RUnit<T>
135135
{
136136
private:
137137

src/NGroup.cxx

+3-3
Original file line numberDiff line numberDiff line change
@@ -784,19 +784,19 @@ NGroup<T>::condense(const double Tol,
784784
if (type[cnt]==3) // log
785785
{
786786
OutList.push_back
787-
(new RLog(AValue,Values[cnt+repCnt-1],
787+
(new RLog<T>(AValue,Values[cnt+repCnt-1],
788788
static_cast<int>(repCnt)));
789789
}
790790
if (type[cnt]==2) // interval
791791
{
792792
OutList.push_back
793-
(new RInterval(AValue,Values[cnt+repCnt-1],
793+
(new RInterval<T>(AValue,Values[cnt+repCnt-1],
794794
static_cast<int>(repCnt)));
795795
}
796796
if (type[cnt]==1) // repeat
797797
{
798798
OutList.push_back
799-
(new RRepeat(AValue,static_cast<int>(repCnt+1)));
799+
(new RRepeat<T>(AValue,static_cast<int>(repCnt+1)));
800800
}
801801
AValue=Values[cnt+repCnt-1];
802802
}

0 commit comments

Comments
 (0)