You should update the documentation for OpenBabel::OBMol GetCoordinates()
to make it more obvious the pointer returned is the internal array.
Normally get functions return copies, not direct access to the data.
Alternatively the code can be refactored to use a shared pointer to make
the intent self documenting.

-- 
Nathan
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to