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?
Is this okay?Code:list <sockclass *> sockets; sockclass *sock = new sockclass(); sockets.push_back(sock);
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?
Is this okay?Code:list <sockclass *> sockets; sockclass *sock = new sockclass(); sockets.push_back(sock);