raii
How to fix heap corruption
I\'ve tried to build a very minimalistic memory read library to read some unsigned ints out of it. However, I run into a \"HEAP CORRUPTION DETECTED\" error message when the ReadUnsignedInt method want[详细]
2022-12-08 07:09 分类:问答Making a HANDLE RAII-compliant using shared_ptr with a custom deleter
I\'ve recently posted a general question about RAII at SO. However, I still have some implementation issues with my HANDLE example.[详细]
2022-12-08 05:10 分类:问答Can inversion of control and RAII play together?
I was just reading up on inversion of control (IOC) and it bothered me that it seems like it makes memory management a pain. Of course开发者_开发百科 it seems ioc is mostly used in garbage collected e[详细]
2022-12-08 00:49 分类:问答