From ff10dfa16140dc5ad56a814372ff48909c9f4b7d Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 6 Apr 2014 15:38:21 -0400 Subject: [PATCH] fixed build error --- util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cpp b/util.cpp index bc1259d1..87aec186 100644 --- a/util.cpp +++ b/util.cpp @@ -272,7 +272,7 @@ namespace http back_inserter(host_), std::ptr_fun(tolower)); // host is icase - std::string::const_iterator port_i = find(host_.begin(), host_.end(), ':'); + auto port_i = find(host_.begin(), host_.end(), ':'); if (port_i != host_.end()) { port_ = std::stoi(std::string(port_i + 1, host_.end()));