Skip to content

Propagating copy-constructor triviality #76

@matthew-wozniczka

Description

@matthew-wozniczka

I noticed I wasn't able to instantiate std::atomic<nonstd::optional<int>> in Visual Studio 2019 because std::is_trivially_copyable wasn't true for nonstd::optional<int>

There's a defect report for this: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0602r1.html (Not sure if it was actually accepted into the standard? But at least Microsoft implemented it in their STL implementation https://learn.microsoft.com/en-us/cpp/overview/what-s-new-for-cpp-2017?view=msvc-170 )

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