Skip to content

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

Open
@tclinken

Description

@tclinken

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions