What is Nostr?
root42 /
npub1n2d…f38a
2023-06-21 11:38:40

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?
Author Public Key
npub1n2dy4g8y8etcwvuq4v3w3g7lzteufn6mkw5qf3hrlmgqdxnwyaqq3zf38a