I'm using a boost array as a buffer and wanted to pass it on as an argument to a function. The way I would like to pass it is so that the size is determined as another argument so that I can pass over buffers of varying sizes. Currently, my code is as follows:
void DataTransform(boost::array<char, 1024> data) {
//do something
}
With a normal array I could have just used:
void DataTransform(char* data, uint_16 size) {
//do something
}
How would I go about unwrapping the boost array to represent it as a pointer?