4 ms·
I hoped for defer (e.g. "RAII" of sorts), is there any way?
by malkia 3y ago
I hoped for defer (e.g. "RAII" of sorts), is there any way?
- oconnor663 3y agoThere was an update on this just last week: https://github.com/ThePhD/future_cxx/issues/67#issuecomment-1891062821 https://github.com/ThePhD/future_cxx/issues/67#issuecomment-...
- joshkel 3y agoAccording to https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2391r0.pdf https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p23..., it's an "unadopted feature being explored." There's more information about the proposal at https://gustedt.wordpress.com/2022/01/15/a-defer-feature-using-lambda-expressions/ https://gustedt.wordpress.com/2022/01/15/a-defer-feature-usi...