remove pesky sstream
This commit is contained in:
parent
19285d61ab
commit
392726bad3
@ -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 )
|
||||
);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user