Skip to content

Commit

Permalink
Merge pull request #2521 from ornladios/NAThompson-patch-2
Browse files Browse the repository at this point in the history
Calling close() is not optional
  • Loading branch information
NAThompson authored Dec 23, 2020
2 parents 7854b5f + e8421a0 commit 0555d8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user_guide/source/api_high/cxx11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ C++11 Write example

}

// optional, but is good practice to indicate oStream shouldn't be used
// Calling close is mandatory!
oStream.close();

C++11 Read "step-by-step" example
Expand Down Expand Up @@ -81,7 +81,7 @@ C++11 Read "step-by-step" example
const std::vector<float> temperature = iStream.read<float>( "temperature", start, count );
const std::vector<float> pressure = iStream.read<float>( "pressure", start, count );
}
// optional, but is good practice to indicate iStream shouldn't be used
// Don't forget to call close!
iStream.close();
}

Expand Down

0 comments on commit 0555d8b

Please sign in to comment.