Memory address of a std::vector member changes after std::function call defined in mother class I have two classes that work like this: