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

23.6.5.2 [stack.defn] declares a bogus swap() for stack<T,Allocator> #242

Closed
StephanTLavavej opened this issue Dec 11, 2013 · 0 comments · Fixed by #354
Closed

23.6.5.2 [stack.defn] declares a bogus swap() for stack<T,Allocator> #242

StephanTLavavej opened this issue Dec 11, 2013 · 0 comments · Fixed by #354

Comments

@StephanTLavavej
Copy link
Contributor

N3797 23.6.5.1 [stack.syn] declares and 23.6.5.6 [stack.special] defines:

template <class T, class Container>
  void swap(stack<T, Container>& x, stack<T, Container>& y) noexcept(noexcept(x.swap(y)));

But 23.6.5.2 [stack.defn] declares:

template <class T, class Allocator>
  void swap(stack<T,Allocator>& x, stack<T,Allocator>& y);

stack<T,Allocator> is bogus, and this is also missing noexcept(noexcept(x.swap(y))).

jwakely added a commit to jwakely/draft that referenced this issue Aug 5, 2014
Reported by Stephan T Lavavej. Fixes cplusplus#242
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.

1 participant