ok, do you think the following could be a fine way around it?
thanksCode:#include <algorithm> struct cBuffer { char data[1024]; int bytesRecorded; bool flag; cBuffer(const char * data_, int bytesRecorded_, bool flag_) : bytesRecorded(bytesRecorded_), flag(flag_) { std::copy(data_, data_ + (bytesRecorded_ * sizeof(char)), data); } };




Reply With Quote