▲ | sgsjchs 4 days ago | ||||||||||||||||
Reopen by constructing and assigning a new socket. | |||||||||||||||||
▲ | spacechild1 4 days ago | parent [-] | ||||||||||||||||
So I essentially have to wrap it in something like std::optional. Well, that's certainly one way to write a socket class, but I'd say it's not idiomatic C++. (I have never seen a socket class being implemented like that.) | |||||||||||||||||
|