Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #520: replace RedBlackMap for MoleculeAlleneStereo #818

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AStepaniuk
Copy link
Collaborator

Issue #520: replace RedBlackMap and RedBlackSet implementation with standard containers
Partial implementation: fix for MoleculeAlleneStereo

…with standard containers

Partial implementation: fix for MoleculeAlleneStereo
@@ -86,7 +86,7 @@ namespace indigo

bool _isAlleneCenter(BaseMolecule& mol, int idx, _Atom& atom, int* sensible_bonds_out);

RedBlackMap<int, _Atom> _centers;
std::map<int, _Atom> _centers;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's what we discussed. We can't use standard containers as members of classes that are used inside Indigo memory-based containers. It leads to memory corruption. That's why the tests failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants