[llvm-bugs] [Bug 24437] basic_ostream::write() does not call basic_streambuf::sputn() if n is zero

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 13 10:41:01 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=24437

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Marshall Clow (home) <mclow.lists at gmail.com> ---
The LWG issue was closed as "Not a defect", and the discussion decided that the
standard gives no guarantees about which underlying functions are called, and
when.

In particular, the point was made that there was no requirement to call sputn
from osgtream::write - that repeated calls to sputc would be just as correct. 
(though probably not as efficient).

Closing as INVALID.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160713/5fe4010c/attachment.html>


More information about the llvm-bugs mailing list