Modern C++ Won't Save Us

sighoya sighoya at gmail.com
Fri Apr 30 14:59:46 UTC 2021


On Friday, 30 April 2021 at 12:35:42 UTC, Ola Fosheim Grøstad 
wrote:

> I don't really have memory issues in C++, if I do it tends to 
> be related to issues that can only be easily solved by a GC... 
> (E.g. ownership not being obvious and avoiding circular 
> reference being difficult)

At some expert level, you would exhibit this kind of confidence.

However, only for the code you write.
The problem lies in semantic shadowing by different kinds of 
casts to raw pointer coupled with different memory management 
strategies among the frameworks.
Passing a pointer given by framework A to B doesn't mean A and B 
share the same assumptions about managing the pointer.


More information about the Digitalmars-d mailing list