Hello..

I have a sockclass and I want to store pointers to sockclass in a c++ list... Now what would be the right way to do this?

Code:
list <sockclass *> sockets;

sockclass *sock = new sockclass();
sockets.push_back(sock);
Is this okay?