Skip to content

Microsoft Visual Studio use _MSVC_LANG (macro __cplusplus does not work properly) #14

@slkom

Description

@slkom

// MVS2019:
// > You are using the _MSVC_LANG=[201703L]
// > You are using the __cplusplus=[199711L]

// work:
#if (__cplusplus >= 201103L) || (defined (_MSC_VER) && _MSVC_LANG >= 201103L)
...
#else
...
#endif

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