Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
A code example reference number appears to be wrong, near Loc 1003 in ebook. #54
In the text "the destructor cleans up file.file_pointer for you ➋" it appears that the reference to "(2)" in the code snippet should actually be "(3)" instead. The destructor is called at the end of the scope (which is at location 3 in the code), not at the file initialization (which is at location 2 in the code).
The way you wrote it is probably not what you actually intended, I'm guessing.