]> git.tdb.fi Git - libs/net.git/commitdiff
Add the target type to a lexical_cast invocation
authorMikko Rasa <tdb@tdb.fi>
Sat, 1 Dec 2012 10:00:59 +0000 (12:00 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 1 Dec 2012 10:00:59 +0000 (12:00 +0200)
source/http/message.cpp

index 45392048e3c188cfbab45f17e600748cfe229da7..5d5dd2123939013fdf5d02ace2907cdaa8d3f16a 100644 (file)
@@ -35,7 +35,7 @@ void Message::add_content(const string &d)
        content += d;
        if(headers.count("Content-Type")==0)
                set_header("Content-Type", "text/plain");
-       set_header("Content-Length", lexical_cast(content.size()));
+       set_header("Content-Length", lexical_cast<string>(content.size()));
 }
 
 void Message::set_user_data(const Variant &d)