Y
Hacker News
new
|
ask
|
show
|
jobs
by
konstmonst
2320 days ago
I would give out handles and have a Guard Object, that allows you to get smart pointers from handles as long as Guard Object is in scope. Then when Guard Object is out of scope, the smart pointers would get invalidated.