"returning" a vector

Posted 10 February 2014 - 10:25 PM

Hello, i have a little issue, and i am not sure what is the problem, i tried to make a function that returns a vector of bools, but it seams i cannot make that function so, i made a function type void that works with the pointers of 3 vectors, and i dont get where is the problem, the compiler (code blocks) says that its something with
error: request for member at in uno, which is of pointer type std::vector<bool>* (maybe you meant to use -> ?)
but i dont seem to spot the problem,
any help, (if you can help me to make the function that receives the 2 vectors and retunrs the thirds would bee even better...
(i am trying to simulate the binary sum behavior)
(i am not that well familiar with the object syntax, that is why y try to use the vector class to do it, i think that could be part of the problem)

Re: "returning" a vector

Posted 11 February 2014 - 06:45 AM

Technically you're not trying to return a vector since your function is void, meaning that it does not return anything. The valid solution #define provides references the vectors passed to it and alters the values of the third reference. It does not return any vector.