Skip to content

Conversation

neuroborus
Copy link

Description
This PR adds the missing console output for Listing 15-29 in Chapter 15 (“Smart Pointers”).
The output demonstrates the changes in strong_count and weak_count when branch is created in an inner scope and then dropped.

Changes

  • Added console block after Listing 15-29 in src/ch15-06-reference-cycles.md.
  • Output reflects the exact results produced by running the corresponding listing code.

Reason
The example previously lacked the actual runtime output, making it harder for readers to follow the explanation in the following paragraph. This change aligns the format with other listings in the book, where code examples are typically followed by their output.

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 this pull request may close these issues.

1 participant