Hacker News new | ask | show | jobs
by gmueckl 2911 days ago
And it's even possible to use std::string as a buffer for binary data including NULs. I won't recommend it, but it works.
1 comments

I'd suggest using a std::vector of byte-sized integers for clarity, though there's nothing wrong from a standards point in using a std::string.