Skip to content

Commit 13e0581

Browse files
committed
src/sage/modular/arithgroup/farey.cpp: use std::bind
std::bind2nd removed in c++17
1 parent e87fd84 commit 13e0581

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/modular/arithgroup/farey.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <sstream>
2525
#include <algorithm>
2626
#include <cassert>
27+
#include <functional>
2728

2829
#include <gmpxx.h>
2930
#include <Python.h>
@@ -737,7 +738,7 @@ size_t FareySymbol::nu3() const {
737738
size_t FareySymbol::rank_pi() const {
738739
if( index() == 2 ) return 1;
739740
return count_if(pairing.begin(), pairing.end(),
740-
bind2nd(greater<int>(), 0))/2;
741+
bind(greater<int>(), placeholders::_1, 0))/2;
741742
}
742743

743744
size_t FareySymbol::number_of_cusps() const {

0 commit comments

Comments
 (0)