summaryrefslogtreecommitdiff
path: root/socketft.h
diff options
context:
space:
mode:
Diffstat (limited to 'socketft.h')
-rw-r--r--socketft.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/socketft.h b/socketft.h
index d23dd40..e414aa6 100644
--- a/socketft.h
+++ b/socketft.h
@@ -94,6 +94,8 @@ public:
#ifdef USE_WINDOWS_STYLE_SOCKETS
void CheckAndHandleError(const char *operation, BOOL result) const
{assert(result==TRUE || result==FALSE); if (!result) HandleError(operation);}
+ void CheckAndHandleError(const char *operation, bool result) const
+ {if (!result) HandleError(operation);}
#endif
//! look up the port number given its name, returns 0 if not found