Skip to content

Missing include in windows/handles.hpp #183

@Tradias

Description

@Tradias

Compiling code that uses boost::process::child with a custom on_setup handler with MSVC 16.8 throws the following errors (boost 1.74):

[build] boost/process/detail/windows/handles.hpp(142): error C2039: "GetHandleInformation" ist kein Member von "boost::winapi".
[build] boost/process/detail/windows/handles.hpp(142): note: Diese Diagnose trat in der vom Compiler generierten Funktion "void boost::process::detail::windows::limit_handles_::on_setup(Executor &) const" auf.
[build] boost/process/detail/windows/handles.hpp(143): error C2039: "HANDLE_FLAG_INHERIT_" ist kein Member von "boost::winapi".
[build] boost/winapi/dll.hpp(190): note: Siehe Deklaration von "boost::winapi"
[build] boost/process/detail/windows/handles.hpp(143): note: Diese Diagnose trat in der vom Compiler generierten Funktion "void boost::process::detail::windows::limit_handles_::on_setup(Executor &) const" auf.
[build] boost/process/detail/windows/handles.hpp(154): error C2039: "SetHandleInformation" ist kein Member von "boost::winapi".
[build] boost/winapi/dll.hpp(190): note: Siehe Deklaration von "boost::winapi"

The missing functions are declared in #include <boost/winapi/handle_info.hpp>. Adding that include to boost/process/detail/windows/handles.hpp solves the problem.

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