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

[util.smartptr.atomic] Add a note mentioning <memory> #5206

Closed
jwakely opened this issue Jan 14, 2022 · 0 comments · Fixed by #5207
Closed

[util.smartptr.atomic] Add a note mentioning <memory> #5206

jwakely opened this issue Jan 14, 2022 · 0 comments · Fixed by #5207
Assignees

Comments

@jwakely
Copy link
Member

jwakely commented Jan 14, 2022

The atomic<shared_ptr<T>> and atomic<weak_ptr<T>> partial specializations are declared by <memory>, but are specified in Clause 31 [atomics]. Nothing in that Clause every mentions <memory>. It's not at all obvious which header you need for those specializations, unless you happen to find their declarations on the eighth page of of the <memory> synopsis in [memory.syn].

I think we should have a note in [util.smartptr.atomic] saying they're provided by <memory>.

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

Successfully merging a pull request may close this issue.

2 participants