Skip to content

Commit

Permalink
added ex7.26
Browse files Browse the repository at this point in the history
  • Loading branch information
pezy committed Nov 14, 2014
1 parent c3e6085 commit 97902bb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ch07/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ the interface should be defined as public, the data shouldn't expose to outside
## Exercise 7.25
The class below can rely on it. It goes in *Section 7.1.5*:
>..the synthesized versions are unlikely to work correctly for classes that allocate resources that reside outside the class objects themselves.
>..the synthesized versions are unlikely to work correctly for classes that allocate resources that reside outside the class objects themselves.
>Moreover, the synthesized versions for copy, assignment, and destruction work correctly for classes that have **vector or string members**.
>Moreover, the synthesized versions for copy, assignment, and destruction work correctly for classes that have **vector or string members**.
Hence the class below which used only built-in type and strings can rely on the default version of copy and assignment. (by @Mooophy)
## Exercise 7.26 [Header](ex7_26.h)|[CPP](ex7_26.cpp)

0 comments on commit 97902bb

Please sign in to comment.