I know it might seem an overhead, but pls make data member private, and add public method std::vector<std::string>& GetPermissions() { return permissions_; }