Skip to content

Use std::atomic<std::shared_ptr> when applicable #22

Open
@MHebes

Description

@MHebes

std::atomic has been specialized for std::shared_ptr in C++20.

Using the std::atomic_* function instead causes a compiler warning at least on MSVC for C++ 20.

Theoretically one could choose which ASP to use based on compiler support. I don't know the right #ifdefs to check off the top of my head but I'm sure they exist!

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