Skip to content

Commit

Permalink
Fix several warnings and for now give up a bit on non copyable compar…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
danlark1 committed Nov 9, 2020
1 parent 9e41144 commit be0af6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ before_install:
- git clone https://github.com/google/googletest.git benchmark/googletest

install:
- export CMAKE_FLAGS="-DMINISELECT_TESTING=on";
- export CMAKE_FLAGS="-DMINISELECT_TESTING=on -DCMAKE_BUILD_TYPE=RelWithDebInfo";
- if [[ "${SANITIZE}" == "on" ]]; then
export CMAKE_FLAGS="${CMAKE_FLAGS} -DMINISELECT_SANITIZE=on";
fi
Expand Down
4 changes: 1 addition & 3 deletions include/miniselect/pdqselect.h
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,6 @@ template <class Iter, class Compare, bool Branchless>
inline void pdqsort_loop(Iter begin, Iter end, Compare& comp, int bad_allowed,
bool leftmost = true) {
typedef typename std::iterator_traits<Iter>::difference_type diff_t;
using CompType = typename median_common_detail::CompareRefType<Compare>::type;

// Use a while loop for tail recursion elimination.
while (true) {
Expand Down Expand Up @@ -606,7 +605,7 @@ template <class Iter, class Compare, bool Branchless>
inline void pdqpartial_sort_loop(Iter begin, Iter mid, Iter end, Compare& comp,
int bad_allowed, bool leftmost = true) {
typedef typename std::iterator_traits<Iter>::difference_type diff_t;
using CompType = typename median_common_detail::CompareRefType<Compare>::type;

// Use a while loop for tail recursion elimination.
while (true) {
diff_t size = end - begin;
Expand Down Expand Up @@ -714,7 +713,6 @@ template <class Iter, class Compare, bool Branchless>
inline void pdqselect_loop(Iter begin, Iter mid, Iter end, Compare& comp,
int bad_allowed, bool leftmost = true) {
typedef typename std::iterator_traits<Iter>::difference_type diff_t;
using CompType = typename median_common_detail::CompareRefType<Compare>::type;

// Use a while loop for tail recursion elimination.
while (true) {
Expand Down

0 comments on commit be0af6b

Please sign in to comment.