Skip to content

Commit

Permalink
src/sage/modular/arithgroup/farey.cpp: use std::bind
Browse files Browse the repository at this point in the history
std::bind2nd removed in c++17
  • Loading branch information
Feyorsh committed Mar 22, 2024
1 parent 992d05e commit 9afccd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/modular/arithgroup/farey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <sstream>
#include <algorithm>
#include <cassert>
#include <functional>

#include <gmpxx.h>
#include <Python.h>
Expand Down Expand Up @@ -737,7 +738,7 @@ size_t FareySymbol::nu3() const {
size_t FareySymbol::rank_pi() const {
if( index() == 2 ) return 1;
return count_if(pairing.begin(), pairing.end(),
bind2nd(greater<int>(), 0))/2;
bind(greater<int>(), placeholders::_1, 0))/2;
}

size_t FareySymbol::number_of_cusps() const {
Expand Down

0 comments on commit 9afccd6

Please sign in to comment.