void communicator::flush(bool wait)
{
- using namespace std::tr1;
- using namespace std::tr1::placeholders;
+ using std::tr1::bind;
+ using std::tr1::placeholders::_1;
sent_comm.remove_if(comm_test_n_destroy);
if (wait && !sent_comm.empty()) {
double process::sum_of_to_send() const
{
- using namespace std::tr1;
- using namespace std::tr1::placeholders;
+ using std::tr1::bind;
+ using std::tr1::placeholders::_1;
+ using std::tr1::placeholders::_2;
return std::accumulate(neigh.begin(), neigh.end(), 0.0,
bind(std::plus<double>(),
void process::send()
{
- using namespace std::tr1;
- using namespace std::tr1::placeholders;
+ using std::tr1::bind;
+ using std::tr1::placeholders::_1;
if (opt::bookkeeping) {
std::for_each(neigh.begin(), neigh.end(),
void process::finalize()
{
- using namespace std::tr1;
- using namespace std::tr1::placeholders;
+ using std::tr1::bind;
+ using std::tr1::placeholders::_1;
finalizing = true;
total_load_running -= load;
#define print_loads_generic(vec, verbose, logp, cat) \
if (_XBT_LOG_ISENABLEDV((*cat), logp)) { \
- using namespace std::tr1; \
- using namespace std::tr1::placeholders; \
+ using std::tr1::bind; \
+ using std::tr1::placeholders::_1; \
XCLOG0(cat, logp, "Neighbor loads:"); \
std::for_each(vec.begin(), vec.end(), \
bind(&neighbor::print, _1, verbose, logp, cat)); \