X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fhandle.h;fp=source%2Fio%2Fhandle.h;h=561d710e457e77c73e7766f23d5bfd77f9b82310;hp=3e06c71de5500e095195102da434dc0dc3aec273;hb=9990be018b49e5aae27218e1b8c6aefdb63b38a7;hpb=8e1db641bb244980bc96ee9da4ba2f0dee8274ad diff --git a/source/io/handle.h b/source/io/handle.h index 3e06c71..561d710 100644 --- a/source/io/handle.h +++ b/source/io/handle.h @@ -23,10 +23,7 @@ public: Private &operator*() { return *priv; } const Private &operator*() const { return *priv; } - /** This is effectively a boolean conversion, but avoids accidental - conversion to OS native handles. Unix-based systems use int and win32 uses - void *; const void * is not implicitly convertible to either. */ - operator const void *() const; + explicit operator bool() const; };