Tessil / ordered-map

C++ hash map and hash set which preserve the order of insertion
MIT License
517 stars 67 forks source link

Issue #3, changes in the operator + of the iterator class #4

Closed HenryRLee closed 7 years ago

HenryRLee commented 7 years ago

This patch includes the following two changes:

  1. Override operator+(difference_type, const ordered_iterator&) which is required in a random access iterator.
  2. Remove operator+(const ordered_iterator& lhs, const ordered_iterator& rhs), which is not a standard operator in iterators.
Tessil commented 7 years ago

Thank you for the correction!

I added some tests (forgot to test this part) and merged the changes.

HenryRLee commented 7 years ago

No problem