make_unique call typo

Open Beginner friendly
#92 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp
Domain
documentation

Research direction

Open the "Unique pointers" chapter and locate the first reference containing the std::make_unique example. Verify the example against C++ syntax, correct the call so it compiles, and confirm the displayed code uses the intended form.

Written by the indexing model from the issue text.

Description

In the "Unique pointers" chapter, in the first reference, there is an example of calling make_unique.
const auto x = std::make_unique<const int>{75};
It uses curly braces instead of parentheses, which won't compile.

Dominant language
Rust
Stars
3.9k
Forks
297
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nrc/r4cppp

All issues in nrc/r4cppp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.