std::find_if on slave nodes

Hello,

I am broadcasting a vector of object whose members are all std::string from the master node to slave nodes. The sending and receiving seem to work properly and the vector sent is consistent with the one received. However, later on in the code, I am trying to find a particular element of the vector on both the master and the slaves. To do it, I am calling std::find_if. It can find the object on the master but not on the slaves.

Does anyone know what is happening here? Because the whole vector is received on the slave nodes and when I print it inside the debugger I see that particular object is in it, but std::find_if does not find it!

Thank you in advance,
M
It's impossible to tell what the bug is without seeing the code. Please post the code that fills the vectors and the code that searches for them. If possible, reduce the code to something that can be compiled and run.
Topic archived. No new replies allowed.