Re:Show HN: Smart pointers for the C programming language
by Snaipe on Wednesday January 14, 2015 @11:19AM
(#8887181)
Yup, these are just pointers, usage is still the same, and no cast/special functions are needed to manipulate them.
Re:Show HN: Smart pointers for the C programming language
by TheLoneWolfling on Wednesday January 14, 2015 @11:40AM
(#8887312)
Well... you cannot call free on them, unless I'm mistaken. But other than that it's as normal.
(This could be a problem if you want to call library code that frees a supplied pointer)
From the examples, it seems that it is fully compatible with standard pointers with no need of casting. Is it true ?
If so, it could work well in simplifying development with embedded development libraries, say like the mbed.