by monocasa · 8y ago · 0 comments
Yes, RAII works for the casual std::vector, but it's not a maintainable solution for general resources.
EDIT: and I was the lead for a high availability C++ RTOS. I know that not all patterns fit for writing quality, available code. This fits remarkably well though. Even though we were totally async and didn't rely on the stack for context lifetimes.