I would like to know if there is an easy solution for casting an array to a variably sized vector.
double CApp::GetTargetCost(const vector<unsigned char> &uHalfphoneFeatureVector_Bytes,const vector<unsigned char> &uTargetFeatureVector_Bytes)
I would like to pass
struct udtByteFeatures
{
unsigned char Values[52];
};
to this function, but C++ does not like the fact that it has a fixed size. It expects a variably sized vector.
The error I am getting is
error C2664: 'CApp::GetTargetCost': Conversion of parameter 1 from 'unsigned char [52]' to 'const std::vector<_Ty> &' not possible
I am not sure yet whether I will use a fixed size later on or not, but currently I simply would like to stay flexible.
Thank you!