I have a Player
structure which holds a list of pointers to its closest neighbors. The structure might look as follows in C++:
struct Player {
string handle;
vector<Player*> neighbors;
};
I want to use protobuf to serialize instances of this class. How would I write a message definition to represent the above structure?