<div>Hello Frederic,</div><div><br></div><div>In the first case it are all strings so you can use + without any problems. In the second case he also adds integers to the string, then the + operator doesnt work ...</div><div>

<br></div><div><div>Thomas<br class="Apple-interchange-newline"><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 11:10, Frederic YHUEL <span dir="ltr"><<a href="mailto:fyhuel@viotech.net">fyhuel@viotech.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
On Tue, Mar 20, 2012 at 3:14 PM, Christopher Mueller <<a href="mailto:git@videolan.org">git@videolan.org</a>> wrote:<br>
> vlc | branch: master | Christopher Mueller <<a href="mailto:christopher.mueller@itec.aau.at">christopher.mueller@itec.aau.at</a>> | Fri Mar  9 16:21:50 2012 +0100| [eb5ab7ff522fd661a73c5f557f5595b35d2ace40] | committer: Hugo Beauzée-Luyssen<br>


><br>
> dash: added Persistent Connection<br>
<br>
>> +std::string         PersistentConnection::prepareRequest    (Chunk *chunk)<br>
> +{<br>
> +    std::string request;<br>
> +    if(!chunk->useByteRange())<br>
> +    {<br>
> +        request = "GET "    + chunk->getPath()     + " HTTP/1.1" + "\r\n" +<br>
> +                  "Host: "  + chunk->getHostname() + "\r\n\r\n";<br>
> +    }<br>
<br>
You use a string here.<br>
<br>
> +    else<br>
> +    {<br>
> +        std::stringstream req;<br>
> +        req << "GET " << chunk->getPath() << " HTTP/1.1\r\n" <<<br>
> +               "Host: " << chunk->getHostname() << "\r\n" <<<br>
> +               "Range: bytes=" << chunk->getStartByte() << "-" << chunk->getEndByte() << "\r\n\r\n";<br>
> +<br>
> +        request = req.str();<br>
> +    }<br>
> +    return request;<br>
<br>
Out of curiosity, what's the point of using a stringstream here?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Frédéric<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</font></span></blockquote></div><br></div></div>