Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/sage/modular/arithgroup/farey.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,7 @@ size_t FareySymbol::nu3() const {
}

size_t FareySymbol::rank_pi() const {
using namespace std::placeholders;
if( index() == 2 ) return 1;
return count_if(pairing.begin(), pairing.end(),
bind(greater<int>(), placeholders::_1, 0))/2;
Expand Down
2 changes: 1 addition & 1 deletion src/sage/symbolic/ginac/archive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ void archive::clear()
/** Delete cached unarchived expressions in all archive_nodes (mainly for debugging). */
void archive::forget()
{
for_each(nodes.begin(), nodes.end(), std::mem_fun_ref(&archive_node::forget));
for_each(nodes.begin(), nodes.end(), std::mem_fn(&archive_node::forget));
}

/** Delete cached unarchived expressions from node (for debugging). */
Expand Down