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

R.13 is out of date with C++17 #1701

Open
tclinken opened this issue Oct 17, 2020 · 1 comment
Open

R.13 is out of date with C++17 #1701

tclinken opened this issue Oct 17, 2020 · 1 comment

Comments

@tclinken
Copy link

R.13 uses the example:

// BAD: potential leak
fun(shared_ptr<Widget>(new Widget(a, b)), shared_ptr<Widget>(new Widget(c, d)));

This could leak prior to C++17, but with the change from this accepted proposal, there is no potential leak in C++17. The explanation of this rule should be updated to reflect this.

@shaneasd
Copy link
Contributor

I think this was mentioned in and is addressed by #1610

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