I am making database management program for homework using the vector library and I keep getting an error when I try to use a vector of struct vectors. Is this even possible to do or am I just doing it wrong?
The program is supposed to display a table to jobs for a given day showing the customer's name, address, and the cost of the job
no suitable user-defined conversion from "Day" to "dayvec" exists
no suitable constructor exists to convert from "int" to "std::vector<int, std::allocator<int>>
the dayval variable is an int variable corresponding to a certain day of the week. Sunday = 0, Monday = 1, etc. There isn't a problem with this so the issue must be with either the vectors or the structs.
The function is expecting vectors, but here it is being sent an individual element of each vector, or a Day and an int. The compiler message is saying it can't do that conversion.