[llvm-bugs] [Bug 24567] New: basic_filebuf non-standard constructor/open functions for taking an open FILE stream
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 25 05:41:36 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24567
Bug ID: 24567
Summary: basic_filebuf non-standard constructor/open functions
for taking an open FILE stream
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: welten at gmx.de
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
Classification: Unclassified
Created attachment 14773
--> https://llvm.org/bugs/attachment.cgi?id=14773&action=edit
patch that adds FILE* constructor/open function to basic_filebuf
Currently it is not possible to construct a C++ stream for an already open
file.
Some other C++ libraries offer non-standard extensions like
__gnu_cxx::stdio_filebuf from ext/stdio_filebuf.h
in the libstdc++.
Given that the current implementation of basic_filebuf uses a FILE stream
internally it is easily possibly to add an alternative constructor and open
function that takes an already open FILE stream.
Attached is a patch containing a straight forward approach to add this
functionality.
--
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/20150825/f966f9d4/attachment.html>
More information about the llvm-bugs
mailing list