mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Fix typo in destructor name (#1074)
Itream -> Istream in I.30: Encapsulate rule violations code snippet
This commit is contained in:
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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user