I'm currently attempting to create a vector that holds float arrays. I am having a diffcult time.
I have the following code:
float testArray[4] = {20, -3.14/2, 5, -3.14/2};
std::vector<float[4]> inputVector;
std::vector<float[4]>::iterator it = inputVector.begin();
inputVector.insert(it, testArray);
I keep getting an error say "array must be initialized with a brace-enclosed initializer" and "invalid array assignment". I tried this same code with a vector of ints (as opposed to a vector of array) and did not have any issue.
I believe there is an underlying issue that I don't understand.
Any help is appreciated!