google / google/styleguide

Contradiction in C++ style guide about scoped_ptr

Open
#24 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated lang:cpp
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

```
The C++ style guide gives two contradicting guidelines about using scoped_ptr.
The Ownership and Smart Pointers section explicitly says not to use scoped_ptr
except for backward compatibility, while the section on Variable-Length Arrays
and alloca() lists scoped_ptr as an acceptable alternative.
```

Original issue reported on code.google.com by `jcrot...@gmail.com` on 2 May 2014 at 2:38

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.