remove pesky sstream

This commit is contained in:
Dennis Luxen 2013-12-08 19:42:48 +01:00
parent 19285d61ab
commit 392726bad3

View File

@ -36,7 +36,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <zlib.h>
#include <boost/noncopyable.hpp>
#include <sstream>
struct ServerFactory : boost::noncopyable {
static Server * CreateServer(std::string& ip_address, int ip_port, int threads) {
@ -44,12 +43,12 @@ struct ServerFactory : boost::noncopyable {
SimpleLogger().Write() <<
"http 1.1 compression handled by zlib version " << zlibVersion();
std::stringstream port_stream;
port_stream << ip_port;
std::string port_stream;
intToString(ip_port, port_stream);
return new Server(
ip_address,
port_stream.str(),
std::min( omp_get_num_procs(), threads)
port_stream,
std::min( omp_get_num_procs(), threads )
);
}
};