X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fio%2Fhandle.cpp;h=53b5a7e4fbf8643a1a2347e4540593f63d72de1c;hb=9990be018b49e5aae27218e1b8c6aefdb63b38a7;hp=c20f067e5a6ca18b3d04c1c39b173d9ea7ccfe0b;hpb=609c9a508cfdc7b42c46c4f21d17639204165a00;p=libs%2Fcore.git diff --git a/source/io/handle.cpp b/source/io/handle.cpp index c20f067..53b5a7e 100644 --- a/source/io/handle.cpp +++ b/source/io/handle.cpp @@ -25,6 +25,11 @@ Handle::~Handle() delete priv; } +Handle::operator bool() const +{ + return priv->handle!=INVALID_HANDLE_VALUE; +} + Handle::Private::Private(): handle(INVALID_HANDLE_VALUE)