mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
Fix typo in destructor name (#1074)
Itream -> Istream in I.30: Encapsulate rule violations code snippet
This commit is contained in:
committed by
Sergey Zubkov
parent
8a408d8500
commit
7be6e7daed
@@ -2240,7 +2240,7 @@ So, we write a class
|
||||
Istream() { }
|
||||
Istream(zstring p) :owned{true}, inp{new ifstream{p}} {} // read from file
|
||||
Istream(zstring p, Opt) :owned{true}, inp{new istringstream{p}} {} // read from command line
|
||||
~Itream() { if (owned) delete inp; }
|
||||
~Istream() { if (owned) delete inp; }
|
||||
operator istream& () { return *inp; }
|
||||
private:
|
||||
bool owned = false;
|
||||
|
||||
Reference in New Issue
Block a user