- Timestamp:
- Nov 8, 2015, 10:40:44 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/network/TrafficControl.cc
r10769 r10775 30 30 31 31 #include <cassert> 32 #include < boost/bind.hpp>32 #include <functional> 33 33 34 34 #include "core/CoreIncludes.h" … … 39 39 40 40 static const unsigned int SCHED_PRIORITY_OFFSET = static_cast<unsigned int>(-1); 41 namespace arg = std::placeholders; 41 42 42 43 objInfo::objInfo(uint32_t ID, uint32_t creatorID, int32_t curGsID, int32_t diffGsID, uint32_t size, unsigned int prioperm, unsigned int priosched) … … 258 259 259 260 //sort copied list according to priorities 260 // use boostbind here because we need to pass a memberfunction to stl sort261 // sort( list.begin(), list.end(), boost::bind(&TrafficControl::prioritySort, this, clientID, _1,_2) );262 list.sort( boost::bind(&TrafficControl::prioritySort, this, clientID, _1,_2) );263 264 // list.sort( boost::bind(&TrafficControl::prioritySort, this, clientID, _1,_2) );261 // use std::bind here because we need to pass a memberfunction to stl sort 262 // sort( list.begin(), list.end(), std::bind(&TrafficControl::prioritySort, this, clientID, arg::_1, arg::_2) ); 263 list.sort( std::bind(&TrafficControl::prioritySort, this, clientID, arg::_1, arg::_2) ); 264 265 // list.sort(std::bind(&TrafficControl::prioritySort, this, clientID, arg::_1, arg::_2) ); 265 266 266 267 //now we check, that the creator of an object always exists on a client … … 275 276 cut(list, targetSize); 276 277 //now sort again after objDataOffset 277 // sort(list.begin(), list.end(), boost::bind(&TrafficControl::dataSort, this, _1,_2) );278 list.sort( boost::bind(&TrafficControl::dataSort, this, _1,_2) );278 // sort(list.begin(), list.end(), std::bind(&TrafficControl::dataSort, this, arg::_1, arg::_2) ); 279 list.sort( std::bind(&TrafficControl::dataSort, this, arg::_1, arg::_2) ); 279 280 280 281 //diese Funktion updateClientList muss noch gemacht werden
Note: See TracChangeset
for help on using the changeset viewer.