X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/3c8c4916710f8dea39786aaffca1edbccd1397a7..10e5dbdfc7cf72a000a90a2f1a27c7dc30364761:/deployment.cpp diff --git a/deployment.cpp b/deployment.cpp index 705c1ea..8f52806 100644 --- a/deployment.cpp +++ b/deployment.cpp @@ -1,6 +1,6 @@ #include #include -#include +#include #include #include #include @@ -50,8 +50,7 @@ void deployment_generator::set_link(int host1, int host2) void deployment_generator::distribute_load() { - using std::tr1::bind; - using std::tr1::placeholders::_1; + using std::placeholders::_1; if (!opt::auto_depl::random_distribution) { set_load(0, opt::auto_depl::load); @@ -63,7 +62,7 @@ void deployment_generator::distribute_load() double factor = opt::auto_depl::load / std::accumulate(loads.begin(), loads.end(), 0.0); std::transform(loads.begin(), loads.end(), loads.begin(), - bind(std::multiplies(), _1, factor)); + std::bind(std::multiplies(), _1, factor)); for (unsigned i = 0 ; i < hosts.size() ; ++i) set_load(i, loads[i]); }