Skip to content

Variable shadowing #3

@Heerdam

Description

@Heerdam

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions