root42 on Nostr: To all the C++ #cxx experts out there: Is there a compelling reason why ...
To all the C++ #cxx experts out there: Is there a compelling reason why std::basic_fstream doesn’t allow for:
a. A custom allocator
b. A custom buffer during construction?
I can call rdbuf()->pubsetbuf() after construction, however I think I don’t have a guarantee that a buffer hasn’t already been allocated.
This is annoying if you are using your own heap implementation. Any good hints on how to solve this?
a. A custom allocator
b. A custom buffer during construction?
I can call rdbuf()->pubsetbuf() after construction, however I think I don’t have a guarantee that a buffer hasn’t already been allocated.
This is annoying if you are using your own heap implementation. Any good hints on how to solve this?