Skip to content

MSVC C++ 20 With Diagnostic Services #109

@ajorians

Description

@ajorians

The following information is odd anyway and as you'll see is easy to resolve on our side. Meaning I wasn't thinking any actions need to be done at all; but figured at least let you know about it.

First consider Microsoft has the ability to detect memory leaks with some Diagnostic Services via redefining the new operator:
image

With C++17 this isn't a problem as you can see with this online link: https://godbolt.org/z/nx35hhY9r

(note: Compiler Explorer doesn't install with MFC/ATL but those defines should give similar effect).

It builds. But if you change the setting to build as C++20 (or later) it fails to compile; here is an online link: https://godbolt.org/z/M3ba6r48h
image

I, myself, am using boost 1.81.0 where I am noticing this issue.

Hope that helps!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions