Quote:Original post by ceribik
Quote:Original post by ToohrVyk
Decide yourself. Employee* (pointer) or Employee (value) ?
I'm not quite sure what you mean. Could you explain a bit more?
Certainly:
bool deleteEmployee(vector<Employee>& employees, string& lastName); ^^^^^^^^ This is a value.// Not sure if this is helpful...vector<Employee*> Employees; ^^^^^^^^^ This is a pointer.// Generates c2664.if(deleteEmployee(Employees, lastName)) ^^^^^^^^^ This has type "vector of pointers", but is used here with type "vector of values".
Moral of the story: use typedefs.
EDIT: Darn you, rip-off, that's the second time in five minutes!