No Matching Function Error for inserting into a list in c++
- by Josh Curren
I am getting an error when I try to insert an item into a list (in C++). The error is that there is no matching function for call to the insert(). I also tried push_front() but got the same error.
Here is the error message:
main.cpp:38: error: no matching function for call to ‘std::list<Salesperson, std::allocator<Salesperson>…