caprice32 icon indicating copy to clipboard operation
caprice32 copied to clipboard

memutils introduction proposal.

Open devnexen opened this issue 4 years ago • 2 comments

starting with a scoped callback e.g. when it would become too verbose to close resources for each error case.

devnexen avatar Oct 02 '21 13:10 devnexen

There's scope_exit in experimental: https://en.cppreference.com/w/cpp/experimental/scope_exit

I guess we could start using it, not sure how far it is from making it to the standard.

ColinPitrat avatar Oct 02 '21 13:10 ColinPitrat

looks interesting but I do not have it in my compilers I have the experimental namespace tough.

devnexen avatar Oct 02 '21 13:10 devnexen

I'd be happy to merge this if we rename deref to scope_exit which seems to be what the standard is currently considering as well as what boost uses.

ColinPitrat avatar Apr 23 '23 08:04 ColinPitrat