I have the folowing cpp method that has the cpp11_std::vector type passed as reference
int getFixturesByName(std::string name, std::vector<b2Fixture*>& fixtures);
Any suggestion on how to deal with it (the vector part)?
I plan to make a wrapper function with a “void ptr” as argument to point to the “b2Fixture” in order to pass an array.data address (using an array of classes). But I then have to check the sizeof and so on. Which seem a bit complex and I would be glad if there was any suggestion on how to deal with it more easily.
thx