jermp / pthash

Fast and compact minimal perfect hash functions in C++.
MIT License
190 stars 25 forks source link

Use universal visitors for const-ref saving #65

Closed adamant-pwn closed 3 months ago

adamant-pwn commented 3 months ago

If https://github.com/jermp/essentials/pull/9 is merged, visit functions would need to be implemented like this. This will allow to use const-ref instead of simple ref for saving, which is good and important for third-party users.

Note: Submodule essentials needs to be updated in the PR before actually merging this change.

adamant-pwn commented 3 months ago

I've updated essentials submodule, so should be OK to merge now.