Skip to content

Forward decls in multi_handle.hxx #533

@mkrausex

Description

@mkrausex

There are two forward decls at the beginning of multi_handle.hxx which, according to a comment there, “Visual Studio doesn't like”, and are currently disabled via #ifndef _MSC_VER. However, Visual Studio 2019 in C++20 mode actually seems to expect these forward decls – the code compiles only if I enable them (i.e., when I remove the #ifndef _MSC_VER).

What would be a good solution? I guess that for some older version of Visual Studio, these forward decls had really been a problem originally. Maybe we should only keep them disabled for all Visual Studio versions before 2019, and enable them for 2019 and later? Or should it be conditional on the C++ standard version instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions