Update naming of bool template parameters, move internal methods to private #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is just a suggestion. It was easier typing this up than trying to communicate everything in a PR comment. Feel free to reject.
I was still having trouble compiling because there were a few places using
combine_hashes
(I think this is probably a bug in clang because it goes away in clang-11).Before I suggested
COMBINE_HASHES_T
but, in retrospect,_T
doesn't make sense as it isn't a type. Furthermore, it seems we have some inconsistency betweentemplate <bool foo>
,template <bool FOO>
, andtemplate <bool kFoo>
(all three are used in the code base). Based on an old ML discussion I thinkkFoo
is correct so I am suggesting that here. Feel free to pick another style if that appeals to you.Also, I had been playing around with making
hash_fixed
andhash_varlen
private. This seems to work ok but feel free to ignore if there is a reason these need to be public.