diff --git a/include/stdex/stream.hpp b/include/stdex/stream.hpp index 4fe6f8c10..ae7d176d0 100644 --- a/include/stdex/stream.hpp +++ b/include/stdex/stream.hpp @@ -3167,6 +3167,11 @@ namespace stdex open(filename.c_str(), mode); } + /// + /// Returns true if file has a valid handle + /// + inline operator bool() const noexcept { return m_source; } + protected: file m_source; };