diff options
Diffstat (limited to 'common/algorithm.h')
-rw-r--r-- | common/algorithm.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/algorithm.h b/common/algorithm.h index d730a3ada2..4a2acef7a5 100644 --- a/common/algorithm.h +++ b/common/algorithm.h @@ -216,8 +216,10 @@ void sort(T *first, T *last) { sort(first, last, Common::Less<T>()); } -///\todo add value_type to all iterators and add default sort variant with Common::Less<T::value_type>() - +template<class T> +void sort(T first, T last) { + sort(first, last, Common::Less<typename T::ValueType>()); +} } // End of namespace Common #endif |