I'm trying to call addValues below:
Obj *s = new Obj();
vector<tm> dates(SIZE);
vector<double> values[COUNT];
for (uint i = 0; i < COUNT; i++) {
values[i] = vector<double>(SIZE);
}
s->addValues(&dates, &values); // <- this is the error line
and I've defined addValues:
void addValues(vector<tm> *newDates, vector<double> (*newValues)[COUNT]);
The exact error is:
no matching function for call to ‘Stock::addValues(std::vector<tm, std::allocator<tm> >*, std::vector<double, std::allocator<double> > (*)[5])’
I think the idea is that my method signature does not match. What is the correct signature for addValues?