Skip to content

Commit

Permalink
refactor: remove deprecated std::unary_function
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kwsm committed Oct 18, 2022
1 parent 3ef3924 commit a985bf2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/bin/libint/dg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ namespace libint2 {
namespace {
#if USE_ASSOCCONTAINER_BASED_DIRECTEDGRAPH
typedef DirectedGraph::targets::value_type value_type;
struct __NotUnrolledIntegralSet : public std::unary_function<const value_type&,bool> {
struct __NotUnrolledIntegralSet {
bool operator()(const value_type& v) {
return NotUnrolledIntegralSet()(v);
}
Expand Down
6 changes: 3 additions & 3 deletions src/bin/libint/dgvertex.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ namespace libint2 {
// Nonmember predicates
//
/// return true if V is an unrolled IntegralSet
struct UnrolledIntegralSet : public std::unary_function<const SafePtr<DGVertex>&,bool> {
struct UnrolledIntegralSet {
bool operator()(const SafePtr<DGVertex>& V);
};
/// return false if V is an unrolled IntegralSet
struct NotUnrolledIntegralSet : public std::unary_function<const SafePtr<DGVertex>&,bool> {
struct NotUnrolledIntegralSet {
bool operator()(const SafePtr<DGVertex>& V);
};
/// return true if V is an Integral in an unrolled target IntegralSet
struct IntegralInTargetIntegralSet : public std::unary_function<const SafePtr<DGVertex>&,bool> {
struct IntegralInTargetIntegralSet {
bool operator()(const SafePtr<DGVertex>& V);
};

Expand Down
2 changes: 1 addition & 1 deletion src/bin/libint/uncontract.h
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ namespace libint2 {
}

/// return true if V is a decontracted IntegralSet
struct DecontractedIntegralSet : public std::unary_function<const SafePtr<DGVertex>&,bool> {
struct DecontractedIntegralSet {
bool operator()(const SafePtr<DGVertex>& V) {
const unsigned int outdegree = V->num_exit_arcs();
if (outdegree == 0) return false;
Expand Down

0 comments on commit a985bf2

Please sign in to comment.