Skip to content
Snippets Groups Projects
Commit 50ffee20 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

Update to fix errs.

parent 69f40523
No related branches found
No related tags found
1 merge request!48hope ubutnu24 just works
Pipeline #31022 failed
......@@ -44,6 +44,11 @@ using IRDB_SDK::DataScoop_t;
#define REV_ALLOF(a) rbegin(a), rend(a)
#define ALLOF(a) begin(a), end(a)
template <typename Func, typename T>
auto myBind2nd(Func func, const T& value) {
return std::bind(func, std::placeholders::_1, value);
}
// static helpers
// use this to determine whether a scoop has a given name.
......@@ -58,7 +63,7 @@ static struct ScoopFinder : binary_function<const IRDB_SDK::DataScoop_t*,const s
static IRDB_SDK::DataScoop_t* find_scoop(IRDB_SDK::FileIR_t *firp,const string &name)
{
auto it=find_if(firp->getDataScoops().begin(), firp->getDataScoops().end(), bind2nd(finder, name)) ;
auto it=find_if(firp->getDataScoops().begin(), firp->getDataScoops().end(), myBind2nd(finder, name)) ;
if( it != firp->getDataScoops().end() )
return *it;
return NULL;
......
......@@ -46,7 +46,9 @@ namespace libIRDB
const IRDB_SDK::SyscallSiteSet_t& getSyscalls() {return syscalls;}
const IRDB_SDK::SyscallSiteSet_t& getSyscalls() const {return syscalls;}
IRDB_SDK::SyscallSiteSet_t getSyscalls() {return syscalls;}
protected:
IRDB_SDK::SyscallNumber_t FindSystemCallNumber(IRDB_SDK::Instruction_t* insn,
const IRDB_SDK::InstructionPredecessors_t& preds);
......
Subproject commit f3d491b57460bf89f648effe1693c5a909eca933
Subproject commit ceb1a16469ce55d6cacb6de9129dfc45c21419f4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment