Skip to content

Warning when compiling under Visual Studio 16.7.0 #2379

Closed
@MichaelGoulding

Description

@MichaelGoulding

Issue description

Warning C26817
Potentially expensive copy of variable 'vh' in range-for loop. Consider making it a const reference (es.71).
include\pybind11\cast.h:461

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