Skip to content

Commit

Permalink
comment C++17 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
willamowius committed Nov 21, 2023
1 parent 65e168b commit 0f97273
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Routing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1595,6 +1595,7 @@ bool VirtualQueuePolicy::OnRequest(SetupRequest & request)
return false;
}

// TODO the use of binary_function needs a patch for C++17
struct PrefixGreater : public binary_function<NumberAnalysisPolicy::PrefixEntry, NumberAnalysisPolicy::PrefixEntry, bool> {

bool operator()(const NumberAnalysisPolicy::PrefixEntry &e1, const NumberAnalysisPolicy::PrefixEntry &e2) const
Expand Down
3 changes: 3 additions & 0 deletions capctrl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
namespace {
// greater operators for sorting route lists

// TODO the use of binary_function needs a patch for C++17
struct IpRule_greater : public std::binary_function<CapacityControl::IpCallVolume, CapacityControl::IpCallVolume, bool> {

bool operator()(const CapacityControl::IpCallVolume &e1, const CapacityControl::IpCallVolume &e2) const
Expand All @@ -49,6 +50,7 @@ struct IpRule_greater : public std::binary_function<CapacityControl::IpCallVolum
}
};

// TODO the use of binary_function needs a patch for C++17
struct H323IdRule_greater : public std::binary_function<CapacityControl::H323IdCallVolume, CapacityControl::H323IdCallVolume, bool> {

bool operator()(const CapacityControl::H323IdCallVolume & e1, const CapacityControl::H323IdCallVolume & e2) const
Expand All @@ -57,6 +59,7 @@ struct H323IdRule_greater : public std::binary_function<CapacityControl::H323IdC
}
};

// TODO the use of binary_function needs a patch for C++17
struct CLIRule_greater : public std::binary_function<CapacityControl::CLICallVolume, CapacityControl::CLICallVolume, bool> {

bool operator()(const CapacityControl::CLICallVolume & e1, const CapacityControl::CLICallVolume & e2) const
Expand Down
2 changes: 2 additions & 0 deletions clirw.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ PString CLIRewrite::RewriteRule::AsString() const
}

namespace {
// TODO the use of binary_function needs a patch for C++17
struct RewriteRule_greater : public std::binary_function<CLIRewrite::RewriteRule, CLIRewrite::RewriteRule, bool> {

bool operator()(const CLIRewrite::RewriteRule &e1, const CLIRewrite::RewriteRule &e2) const
Expand All @@ -116,6 +117,7 @@ struct RewriteRule_greater : public std::binary_function<CLIRewrite::RewriteRule
}
};

// TODO the use of binary_function needs a patch for C++17
struct SingleIpRule_greater : public std::binary_function<CLIRewrite::SingleIpRule, CLIRewrite::SingleIpRule, bool> {

bool operator()(const CLIRewrite::SingleIpRule &e1, const CLIRewrite::SingleIpRule &e2) const
Expand Down

0 comments on commit 0f97273

Please sign in to comment.