Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagating copy-constructor triviality #76

Open
matthew-wozniczka opened this issue Jun 26, 2023 · 1 comment
Open

Propagating copy-constructor triviality #76

matthew-wozniczka opened this issue Jun 26, 2023 · 1 comment

Comments

@matthew-wozniczka
Copy link

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 )

@martinmoene
Copy link
Owner

Thanks for the heads-up.

Had a brief look at it. It may not be a 'trivial' change, requiring a bit of probing how I'd like to approach this.

May take some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants