Skip to content

Visual Studio 2017 compiler error with Conformance Mode enabled #1239

Closed
@chhenning

Description

@chhenning

With v15.5.2 I just noticed the compiler flag "/permissive-". If enabled just "#include <pybind11/pybind11.h>" will generate the error:

error C2884: 'pybind11::detail::_': introduced by using-declaration conflicts with local function 'pybind11::detail::_'

The solution is to set Conformance Mode to "No".

For whatever reason this flag was enabled when I created a new project.

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