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

View File

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