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

Variable shadowing #3

Open
Heerdam opened this issue Sep 9, 2023 · 1 comment
Open

Variable shadowing #3

Heerdam opened this issue Sep 9, 2023 · 1 comment

Comments

@Heerdam
Copy link

Heerdam commented Sep 9, 2023

Greetings.

I want to to bring an issue with your code to your attention. Specifically it is the issue that various variables are shadowing class members or even local variables shadowing other local variables. (For example here)
While this is technically not an error according to C++ standard, this is considered bad practice and compilation fails with '-Wshadow -Werror' on gcc or when using MSVC with /WX (or any warning is error flag enabled) and the conformance mode (/permissive-) enabled.

Cheers

@JoseAntFer
Copy link
Member

Hello @Heerdam,

please excuse the late response. I finally found some time to take a look at this. While I understand that this is not good practice, it doesn't affect the correct functioning of the library and it is not something I can spend time to address at the moment. Also, many of those warnings are coming from a 3rd party library (taskflow), so TreeNSearch will not compile with "-Werror" even if we fix the ones on our end.

In any case, we appreciate your feedback and we will take it into account for when we have time.

Best regards,
José.

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

No branches or pull requests

2 participants