Skip to content

Commit

Permalink
Merge pull request #253 from e-kwsm/rm-unary_function
Browse files Browse the repository at this point in the history
refactor: remove deprecated `std::unary_function`
  • Loading branch information
evaleev authored Dec 29, 2022
2 parents 3ef3924 + a985bf2 commit 8405701
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 8405701

Please sign in to comment.