Skip to content

fix shadow warning in gcc (#1) - #53

Open
museghost wants to merge 2 commits into
Tessil:masterfrom
museghost:gcc-shadow-warning
Open

fix shadow warning in gcc (#1)#53
museghost wants to merge 2 commits into
Tessil:masterfrom
museghost:gcc-shadow-warning

Conversation

@museghost

Copy link
Copy Markdown

No description provided.

@Tessil

Tessil commented Jun 30, 2021

Copy link
Copy Markdown
Owner

Hi,

Thank you for your contribution. Would it be possible to change __hash to something like hash_ as any name starting with two underscores are reserved? Thanks.

@museghost

Copy link
Copy Markdown
Author

@Tessil At first, I appreciate you to developing such a wonderful hashmap in c++ world. This library helps me a lot.
This commit contains the suffix hash_ what you said before.
Could you please check it and merge them, if possible ?


const std::size_t hash = hash_key(key);
const std::size_t ibucket_for_hash = bucket_for_hash(hash);
const std::size_t __m_hash = hash_key(key);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why __m_hash here? Double underscores are reserved and I don't see the reason for the m_ too.

Comment valid for the other __m_hash occurrences in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants