diff --git a/include/etl/algorithm.h b/include/etl/algorithm.h index a705f986..65a23687 100644 --- a/include/etl/algorithm.h +++ b/include/etl/algorithm.h @@ -1127,8 +1127,8 @@ namespace etl /// Uses users defined comparison. ///\ingroup algorithm //*************************************************************************** - template ::value_type> > - void sort(TIterator first, TIterator last, TCompare compare = TCompare()) + template + void sort(TIterator first, TIterator last, TCompare compare) { typedef typename std::iterator_traits::difference_type difference_t; @@ -1154,7 +1154,16 @@ namespace etl } } } + + //*************************************************************************** + /// Sorts the elements using shell sort. + ///\ingroup algorithm + //*************************************************************************** + template + void sort(TIterator first, TIterator last) + { + etl::sort(first, last, std::less::value_type>()); + } } #endif -