Is there any problem with my code ?
std::vector weights; int weight[2] = {1,2}; weights.push_back(weight);
It can\'t be compi
Just use
vector .That will definitely work.
A relevant discussion on the same topic : Pushing an array into a vector