I have a class with a container (containing pointer) as a member:
MyClass{ private: std::vector _VecMyObjs; public: const std::vector
const vector MyClass::GetVecMyObjs() const { return vector(_VecMyObjs.begin(), _VecMyObjs.end()); }
This seems to be the solution to me. I can tell now, thanks to all the different posts I got. Thanks all of you! Have a nice one... (Or let me know, if I am still wrong somewhere.)