#include "loba_makhoul.h"
-class compare {
-public:
- bool operator()(const neighbor*a, const neighbor*b) {
- return a->get_load() < b->get_load();
- }
-};
-
void loba_makhoul::load_balance()
{
- std::sort(pneigh.begin(), pneigh.end(), compare());
+ std::sort(pneigh.begin(), pneigh.end(), pneigh_load_less());
print_loads_p(false, xbt_log_priority_debug);