Skip to content

Commit

Permalink
Finished 16.1...
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Apr 17, 2018
1 parent 73c5cd3 commit b71567a
Show file tree
Hide file tree
Showing 8 changed files with 482 additions and 543 deletions.
8 changes: 7 additions & 1 deletion ch16/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,17 @@ Solution from [How is a template instantiated? - Stack Overflow](https://stackov
> Revise your `Blob` class to use your version of `shared_ptr` rather than the library version.
[Blob with SharedPtr](ex16_29_blob.h) | [test](ex16_29_blob_test.cpp)
## Exercise 16.30
Rerun some of your programs to verify your `shared_ptr` and revised `Blob` classes. (Note: Implementing the `weak_ptr` type is beyond the scope of this Primer, so you will not be able to use the `BlobPtr`
class with your revised `Blob`.)
check [Exercise 16.28](#exercise-1628)
## Exercise 16.31
>Explain how the compiler might inline the call to the deleter if we used `DebugDelete` with `unique_ptr`.
>Explain how the compiler might inline the call to the deleter if we used `DebugDelete` with `unique_ptr`.
The compiler will set the default deleter type as `DebugDelete`, which will be executed is known at compile time.
124 changes: 0 additions & 124 deletions ch16/ex16.29/Blob.h

This file was deleted.

31 changes: 0 additions & 31 deletions ch16/ex16.29/DebugDelete.h

This file was deleted.

33 changes: 0 additions & 33 deletions ch16/ex16.29/main.cpp

This file was deleted.

Loading

0 comments on commit b71567a

Please sign in to comment.