boostorg / boostorg/geometry

nth_element_and_half_boxes::apply uses local variable with same name as function parameter

Ouverte
#649 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
C++
Étoiles
517
Forks
232
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Compiling 1.69 with VS2019's v142 toolset & arguments /std:c++17 /permissive- I get the following:

[...]boost\include\boost\geometry\index\detail\rtree\pack_create.hpp(80,1): warning C4457: declaration of 'median' hides function parameter

followed by several pages of further complaints. I found that renaming the local 'median' to something like 'edge_median' and updating the two usages of the variable (next two lines) the warning went away.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.