From f05705417256fa2794ffd112dd75ca75092404b6 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Wed, 22 May 2013 11:59:12 +0200 Subject: [PATCH] Replacing stringstream based int->string conversion with boost karma based generator --- Server/BasicDatastructures.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/BasicDatastructures.h b/Server/BasicDatastructures.h index ebd5a1e50..a97030038 100644 --- a/Server/BasicDatastructures.h +++ b/Server/BasicDatastructures.h @@ -143,9 +143,9 @@ Reply Reply::stockReply(Reply::status_type status) { rep.headers[0].name = "Access-Control-Allow-Origin"; rep.headers[0].value = "*"; rep.headers[1].name = "Content-Length"; - std::ostringstream s; - s << rep.content.size(); - rep.headers[1].value = s.str(); + std::string s; + intToString(rep.content.size(), s); + rep.headers[1].value = s; rep.headers[2].name = "Content-Type"; rep.headers[2].value = "text/html"; return rep;