Skip to content

boost v1.71 - Program fails to compile after including header : <boost/process.hpp> #96

@m7b

Description

@m7b

I dont't know if it is relatet to #92, but i can't compile the same source code with only the header included with boost 1.71.

In file included from W:/boost_1_71_0/boost/process/detail/windows/handles.hpp:11,
                 from W:/boost_1_71_0/boost/process/detail/used_handles.hpp:17,
                 from W:/boost_1_71_0/boost/process/detail/windows/async_in.hpp:20,
                 from W:/boost_1_71_0/boost/process/async.hpp:49,
                 from W:/boost_1_71_0/boost/process.hpp:23,
                 from X:\trunk\test\test_boost_process.cpp:1:
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp:209:51: error: expected ')' before '*' token
 typedef ::boost::winapi::NTSTATUS_ (__kernel_entry *nt_system_query_information_p )(
                                    ~              ^~
                                                   )
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp:224:51: error: expected ')' before '*' token
 typedef ::boost::winapi::NTSTATUS_ (__kernel_entry *nt_query_object_p )(
                                    ~              ^~
                                                   )
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp: In function 'boost::winapi::NTSTATUS_ boost::process
::detail::windows::workaround::nt_system_query_information(boost::process::detail::windows::workaround::SYSTEM_INFORMATI
ON_CLASS_, void*, boost::winapi::ULONG_, boost::winapi::PULONG_)':
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp:240:12: error: 'nt_system_query_information_p' does n
ot name a type; did you mean 'nt_system_query_information'?
     static nt_system_query_information_p f = reinterpret_cast<nt_system_query_information_p>(::boost::winapi::get_proc_
address(h, "NtQuerySystemInformation"));
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            nt_system_query_information
...

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