On 8/27/2020 3:06 PM, Nils Weskamp wrote:
To add to this: you are looking at the wonderful concept of an
"undefined behavior" in C/C++. There is no guarantee that your example
program will always show the same behaviour.

In more recent versions of C++, you have access to "smart pointers" like
std::shared_ptr, which basically implement reference counting. Not sure
if this would help here.

It's worse: with all the boost junk they pulled in the really recent versions, good luck figuring out which calls pass "smart" pointers and which don't.

There are reasons why everyone's into Rust, and the efforts of C++ Standards Committee are behind many of them.

Dima


_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to