Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename scalar parameters in vec1, vec2, vec3, and vec4 (fixes C4458 in MSVC 2015) #394

Merged
merged 1 commit into from Sep 4, 2015

Conversation

cgcostume
Copy link

With msvc2015 the (new) warning C4458 occurs on all vector operators using scalars as parameters since they overlap with the union member s:

Example:
\glm-0.9.7.0\glm\detail\type_vec3.inl(302): warning C4458: declaration of 's' hides class member

For projects that use highest warning levels for compilation (and some even with warnings as errors) this prohibits compilation.

@Groovounet Groovounet added this to the GLM 0.9.7 milestone Sep 4, 2015
@Groovounet Groovounet self-assigned this Sep 4, 2015
Groovounet added a commit that referenced this pull request Sep 4, 2015
rename scalar parameters in vec1, vec2, vec3, and vec4 (fixes C4458 in MSVC 2015) #394
@Groovounet Groovounet merged commit 7b5971c into g-truc:master Sep 4, 2015
@Groovounet
Copy link
Member

This looks great to me!

Thanks for contributing,
Christophe

Groovounet added a commit that referenced this pull request Sep 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants