Skip to content

Level4 warning in MS Visual C++ #12

@sasha2048

Description

@sasha2048

Code:

#include <boost/scope_exit.hpp>

int main() {
    int a = 0;
    BOOST_SCOPE_EXIT(&a) {++a;} BOOST_SCOPE_EXIT_END
    return 0;
}

When compiling with /W4 in MS Visual Studio 2019, I get:

warning C4459: declaration of 'boost_scope_exit_aux_args' hides global declaration
…\boost\scope_exit.hpp(261,46): message : see declaration of 'boost_scope_exit_aux_args'

See also:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions