remove dependency on lexical_cast in bandwidth limiter test (since it kept failing on snow leopard)

This commit is contained in:
Arvid Norberg 2009-09-18 07:00:40 +00:00
parent deccb51a7d
commit 4fde3de683
1 changed files with 3 additions and 3 deletions

View File

@ -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));
}
}