Value Type Representation Between the Original and Revised C++

 

Stan was kind enough to explain me what he meant by “When you couple that with the continued requirement that non-POD native classes be pointer members within the value type, this makes the use of a value type for wrapping non-POD native classes virtually useless": “There is no way to automatically delete the wrapped pointer – thus, it is nearly impossible to not leak memory …