Skip to content

Pybind fails to build with MSVC 19.16 in C++17 mode #2089

@LeslieGerman

Description

@LeslieGerman

Fails to build with MSVC 19.16.27034.0 in C++17

I used pybind v 2.4.3

cmake -G Ninja -DPYBIND11_CPP_STANDARD=/std:c++17 ..\src
ninja

Error:

D:\Libs\Pybind\2.4.3\src\include\pybind11/stl_bind.h(415): error C2893: Failed to specialize function template 'enable_if<_Test,Ty>::type pybind11::detail::vector_buffer(Class &)'
with
[
_Ty=void
]

No problem with the default c++14 mode.

Great library, BTW! 😃 👍

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