|
|
|
|
|
by pjmlp
1831 days ago
|
|
You aren't reading it properly, the documentation you are reading is for the case you leave the work to the GC, you can take it yourself C++ RAII style: {
using my_socket = new NetworkSocket()
}
// my_socket no longer exists when code arrives here
Or even better if NetworkSocket is a struct, it gets stack allocated, zero GC. |
|