Remove -ansi -pedantic from the g++ command for better optimization
[senf.git] / Socket / FileHandle.cci
index f633fdf..bb366ba 100644 (file)
@@ -172,18 +172,12 @@ prefix_ bool satcom::lib::FileHandle::valid()
     return body().valid();
 }
 
-prefix_ satcom::lib::FileHandle::operator bool ()
+prefix_ bool satcom::lib::FileHandle::boolean_test()
     const
 {
     return valid() && !eof();
 }
 
-prefix_ bool satcom::lib::FileHandle::operator!()
-    const
-{
-    return ! (valid() && !eof());
-}
-
 prefix_ int satcom::lib::FileHandle::fd()
     const
 {
@@ -233,6 +227,11 @@ satcom::lib::FileHandle::cast_dynamic(FileHandle handle)
     return handle;
 }
 
+prefix_ int satcom::lib::retrieve_filehandle(FileHandle handle)
+{
+    return handle.fd();
+}
+
 ///////////////////////////////cci.e///////////////////////////////////////
 #undef prefix_