Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 05libraries/sec01DesigningClasses.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ The concept of RAII is of great importance in a language like C++ which allows y
- Memory allocated by your class should be allocated in the constructor.
- Memory allocated by your class should be de-allocated in the destructor.

If the constructor fails to allocate the resources required for the class, then it should throw an exception. Any resources already allocated by the class before reaching the exception should be deallocated by the destructor.
If the constructor fails to allocate the resources required for the class, then it should throw an exception. Any resources already allocated by the class before reaching the exception should be deallocated.

The goal is to guarantee the following:

Expand Down
Loading