<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 5:35 PM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 8 April 2015 at 20:25, Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br>
> It stops being a "stream" when you add the ability to write at a specified<br>
> offset. It's like adding operator+= to something with "outputiterator" in<br>
> the name. Is there a reason that this has to live inside raw_ostream?<br>
<br>
</span>The object writer has to write to something. It can do it better if<br>
that something supports at least pwrite.<br></blockquote><div><br></div><div>Well, it's not only that; it just seems to sort of violate the whole idea of raw_ostream:</div><div><br></div><div><pre class="" style="font-family:monospace,fixed;font-size:9pt;border:1px solid rgb(196,207,229);background-color:rgb(251,252,253);padding:4px 6px;margin:4px 8px 4px 2px;overflow:auto;word-wrap:break-word;line-height:15px;color:rgb(0,0,0)">00035 <span class="" style="color:rgb(128,0,0)">/// raw_ostream - This class implements an extremely fast bulk output stream</span>
<a name="l00036" style="color:rgb(61,87,140)"></a>00036 <span class="" style="color:rgb(128,0,0)">/// that can *only* output to a stream.  It does not support seeking, reopening,</span>
<a name="l00037" style="color:rgb(61,87,140)"></a>00037 <span class="" style="color:rgb(128,0,0)">/// rewinding, line buffered disciplines etc. It is a simple buffer that outputs</span>
<a name="l00038" style="color:rgb(61,87,140)"></a>00038 <span class="" style="color:rgb(128,0,0)">/// a chunk at a time.</span></pre></div><div> </div><div>I think it would be better to not tie this directly into raw_ostream.</div><div><br></div><div>-- Sean Silva</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
We can rename it, but seems a bit heavy handed.<br>
<br>
Cheers,<br>
Rafael<br>
</blockquote></div><br></div></div>