Skip to content

Commit

Permalink
Fix a couple of deprecated c++ features
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Oct 4, 2017
1 parent b7efe4b commit 5f81ea3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion examples/quickstart/quicksort.cpp
Expand Up @@ -37,6 +37,7 @@ using hpx::util::high_resolution_timer;

using hpx::init;
using hpx::finalize;
using namespace std::placeholders;

///////////////////////////////////////////////////////////////////////////////
template <typename T>
Expand All @@ -46,7 +47,7 @@ inline std::size_t partition(T* data, std::size_t begin, std::size_t end)
T* last = first + (end - begin);

T* middle = std::partition(
first, last, std::bind2nd(std::less<T>(), *first));
first, last, std::bind(std::less<T>(), _1, *first));

return middle - data;
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/performance_counters/papi/server/papi.cpp
Expand Up @@ -69,8 +69,7 @@ namespace hpx { namespace performance_counters { namespace papi { namespace serv
"(perhaps thread was not registered)");
papi_call(PAPI_attach(evset_, tm.get_thread_id(tix)),
"failed to attach thread to PAPI event set", locstr);
tm.register_callback(tix,
std::bind1st(std::mem_fun(&thread_counters::terminate), this));
tm.register_callback(tix, [&](std::uint32_t i){return this->terminate(i);});
}

thread_counters::~thread_counters()
Expand Down

0 comments on commit 5f81ea3

Please sign in to comment.