Actually this becomes rather annoying, since I can't use any closures on the object. Stupidly, I can still use closures with an object which is deleted at the end of the function.
- How to use structs for RAII? Sean Eskapp
- Re: How to use structs for RAII? bearophile
- Re: How to use structs for RAII? Sean Eskapp
- Re: How to use structs for RAII? Andrej Mitrovic
- assert vs enforce? Sean Eskapp
- Re: assert vs enforce? Robert Clipsham
- Re: assert vs enforce? Andrej Mitrovic
- Re: assert vs enforce? Sean Eskapp
- Re: How to use structs for RAII? Jacob Carlborg
- Re: How to use structs for RAII? Andrej Mitrovic
- Re: How to use structs for RAII? Sean Eskapp
- Re: How to use structs for RAII? Jonathan M Davis
- Re: How to use structs for RAII? Jacob Carlborg