Add some explanatory comments to ErrnoGuard

This commit is contained in:
Martin Hořeňovský 2020-04-24 20:58:29 +02:00
parent 7c97554565
commit 8d44c2450c
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 4 additions and 0 deletions

View File

@ -9,8 +9,12 @@
namespace Catch {
//! Simple RAII class that stores the value of `errno`
//! at construction and restores it at destruction.
class ErrnoGuard {
public:
// Keep these outlined to avoid dragging in macros from <cerrno>
ErrnoGuard();
~ErrnoGuard();
private: