From 2ffd5c4afe919c8c27dcbc9162972df747f45f1b Mon Sep 17 00:00:00 2001 From: jgvictores Date: Mon, 20 Nov 2017 19:01:36 +0100 Subject: [PATCH] Fix web example issues. - Contact(name) -> Contact contact(name) - ConstString::toString -> std::stringstream implementation --- example/web/web_test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/example/web/web_test.cpp b/example/web/web_test.cpp index 9c2a68fcef..ad58fea776 100644 --- a/example/web/web_test.cpp +++ b/example/web/web_test.cpp @@ -78,7 +78,7 @@ int main(int argc, char *argv[]) { Responder responder; server.setReader(responder); - Contact(name); + Contact contact(name); if (port_number!=0) { contact.setSocket("", "", port_number); } @@ -95,7 +95,9 @@ int main(int argc, char *argv[]) { } Bottle push; push.addString("web"); - ConstString div = ConstString("
")+ConstString::toString(at)+ + std::stringstream ss; + ss << at; + ConstString div = ConstString("
")+ss.str()+ " potatoes
"; push.addString(div); server.write(push);