Skip to content

v0.7.0

Compare
Choose a tag to compare
@Tessil Tessil released this 17 Feb 18:56
· 18 commits to master since this release
  • Rename CMake project name from tsl_array_hash to tsl-array-hash for coherence with the convention used by most package managers. The find_package(tsl-array-hash) command must now be used instead of the find_package(tsl_array_hash).
  • Check that InputIt is an iterator to enable the insert functions with iterators. This prevents some potential overload conflicts between insert functions.
  • Use std::hash<std::basic_string_view<CharT>> as default hash function instead of FNV-1a if std::string_view is detected.
  • Bug correction, set a moved hash map/set in a valid state so that it can still be used even after a move (#4).
  • Fix bug in tsl::array_set::operator==(...). Wrong find was called.
  • Bug correction. When using a CharT other than char, a compilation error will occur if some methods using std::strlen are called. Use std::char_traits<CharT>::length which is the proper way.
  • Force the max_load_factor to be at least 0.1.
  • Add support for efficient serialization (#5).
  • Fix CMake >= 3.13 warning on Policy CMP0076 and add quotes to paths.
  • Fix bug where using rehash(0) on an empty map with a bucket_count > 0 would result in an invalid m_buckets pointer leading to potential segfaults.
  • Set bucket count for default contructed map/set to 0 to avoid any allocation.
  • Fix bug in load_factor() when bucket_count was equal to 0.
  • Fix compilation error with GCC 9, the implicit copy/move constructor/operator of the iterator were not generated.