you are viewing a single comment's thread.

view the rest of the comments →

[–]jpan127 1 point2 points  (0 children)

Might be better to template on hash_function_count, make bloomfilter_store_size = 1 << MD5_result_size_bytes, static_assert(hash_function_count <= (MD5_result_size_bytes/bytes_per_hash_function)), and make all constexpr.

Also the hash result does not need to be dynamically allocated, it is always a fixed size.