Smart pointers/safe memory management for C? -
I think, and I think many others use smart pointers like C ++ like RAII, et al. However, It's easy to wrap memory management when you have destructors, classes, operator overloading, et al.
For anyone who writes raw C99, where do you manage to help secure memory?
Thank you
Smart Points are hard to handle in raw C, because you have The language syntax is not back to use. I have noticed that most efforts do not really work, because you do not have the advantages of the Destructors, when the objects are scattered, which really works Smart Points.
If you are really worried about this, then you may want to consider by simply using one directly and avoiding the smart pointer requirement completely.
Comments
Post a Comment