Есть какие-то проблемы с моим кодом?
std::vector<int[2]> weights;
int weight[2] = {1,2};
weights.push_back(weight);
Невозможно скомпилировать, помогите объяснить почему:
no matching function for call to ‘std::vector<int [2], std::allocator<int [2]> >::push_back(int*&)’