Core: Fixed typename issue with SortIndex

git-svn-id: svn://ultimatepp.org/upp/trunk@6438 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-10-16 12:07:22 +00:00
parent dc484b54f3
commit 85c1312103

View file

@ -1613,7 +1613,7 @@ void SortIndex(Index& index, const Less& less)
template <class Index>
void SortIndex(Index& index)
{
SortIndex(index, StdLess<Index::ValueType>());
SortIndex(index, StdLess<typename Index::ValueType>());
}
template <class Index, class Less>
@ -1627,9 +1627,9 @@ void StableSortIndex(Index& index, const Less& less)
template <class Index>
void StableSortIndex(Index& index)
{
StableSortIndex(index, StdLess<Index::ValueType>());
StableSortIndex(index, StdLess<typename Index::ValueType>());
}
/*
// OLD DEPRECATED NAMES:
template <class C> // Deprecated
int MinIndex(const C& c) { return FindMin(c); }
@ -1639,5 +1639,3 @@ int MaxIndex(const C& c) { return FindMax(c); }
template <class C> // Deprecated
typename C::ValueType Sum0(const C& c) { return Sum(c); }
*/