remove dependency on lexical_cast in bandwidth limiter test (since it kept failing on snow leopard)
This commit is contained in:
parent
deccb51a7d
commit
4fde3de683
|
@ -40,7 +40,6 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "libtorrent/stat.hpp"
|
||||
#include "libtorrent/time.hpp"
|
||||
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/function.hpp>
|
||||
#include <boost/bind.hpp>
|
||||
#include <iostream>
|
||||
|
@ -168,8 +167,9 @@ void spawn_connections(connections_t& v, bandwidth_manager& bwm
|
|||
{
|
||||
for (int i = 0; i < num; ++i)
|
||||
{
|
||||
v.push_back(new peer_connection(bwm, bwc, 200, false
|
||||
, prefix + boost::lexical_cast<std::string>(i)));
|
||||
char name[200];
|
||||
snprintf(name, sizeof(name), "%s%d", prefix, i);
|
||||
v.push_back(new peer_connection(bwm, bwc, 200, false, name));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue