AppLayerLabs / bdk-cpp

MIT License
7 stars 12 forks source link

SafeUnorderedMap fixes #99

Closed fcecin closed 5 months ago

fcecin commented 8 months ago

This patch hides the std::unordered_map iterators that were exposed, and replaces them with new SafeUnorderedMap::iterator and SafeUnorderedMap::const_iterator.

As part of the proposed changes, some SafeUnorderedMap methods had to be removed. We can re-implement them later without exposing internal details, if it turns out that we will be needing them.

Added tests for the new features, and also some additional tests to make sure all of the insert/emplace/erase methods from the template type get instantiated at least once.

fcecin commented 5 months ago

This is obsoleted by some radical changes coming to the Safe Variables feature. I'll keep this branch for now as a source of ideas for upcoming work.