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

[Feature Request] Optionally movable atomic_t #12930

Open
elad335 opened this issue Nov 9, 2022 · 1 comment
Open

[Feature Request] Optionally movable atomic_t #12930

elad335 opened this issue Nov 9, 2022 · 1 comment

Comments

@elad335
Copy link
Contributor

elad335 commented Nov 9, 2022

This is not the first time I've came across this problem, only recently in #12921 I've worked-around this limitation with shared ptr which is not ideal. I understand that this is a limitation derived from std::atomic but it doesn't make sense to enforce it sometimes.

@Nekotekina
Copy link
Member

I don't understand the problem, you can just put atomic_t directly in std::map container

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