I’m working with the ZeroMQ library which uses void * to represent blocks of arbitrary binary data. However I’d like to use std::vector to copy and move these blocks around. What is the preferred, idiomatic way to make a std::vector representing raw bytes? I’m currently using a std::vector<unsigned char> but I want to make sure my code makes sense to other people.
I’m working with the ZeroMQ library which uses void * to represent blocks of
Share
Either
or
both seem fine to me.