Subj : Why this error code in Builder C++ 6.0? To : borland.public.cpp.borlandcpp From : "Brian Farmer" Date : Tue Dec 02 2003 06:08 am Why do I get the error message below, [C++ Error] _function_base.h(73): E2093 'operator<' not implemented in type 'ErrorEntry' for arguments of the same type with this segment of code: bool operator<(const ErrorEntry& rhs) { return nID < rhs.nID; } The entire code segment is below: //// Statics /////////////////////////////////////////////////////////// // List of Winsock error constants mapped to an interpretation string. // Note that this list must remain sorted by the error constants' // values, because we do a binary search on the list when looking up // items. static struct ErrorEntry { int nID; const char* pcMessage; ErrorEntry(int id, const char* pc = 0) : nID(id), pcMessage(pc) { } bool operator<(const ErrorEntry& rhs) { return nID < rhs.nID; } } gaErrorList[] = { ErrorEntry(0, "No error"), ErrorEntry(WSAEINTR, "Interrupted system call"), ErrorEntry(WSAEBADF, "Bad file number"), ErrorEntry(WSAEACCES, "Permission denied"), ErrorEntry(WSAEFAULT, "Bad address"), ErrorEntry(WSAEINVAL, "Invalid argument"), ErrorEntry(WSAEMFILE, "Too many open sockets"), ErrorEntry(WSAEWOULDBLOCK, "Operation would block"), ErrorEntry(WSAEINPROGRESS, "Operation now in progress"), ErrorEntry(WSAEALREADY, "Operation already in progress"), ErrorEntry(WSAENOTSOCK, "Socket operation on non-socket"), ErrorEntry(WSAEDESTADDRREQ, "Destination address required"), ErrorEntry(WSAEMSGSIZE, "Message too long"), ErrorEntry(WSAEPROTOTYPE, "Protocol wrong type for socket"), ErrorEntry(WSAENOPROTOOPT, "Bad protocol option"), ErrorEntry(WSAEPROTONOSUPPORT, "Protocol not supported"), ErrorEntry(WSAESOCKTNOSUPPORT, "Socket type not supported"), ErrorEntry(WSAEOPNOTSUPP, "Operation not supported on socket"), ErrorEntry(WSAEPFNOSUPPORT, "Protocol family not supported"), ErrorEntry(WSAEAFNOSUPPORT, "Address family not supported"), ErrorEntry(WSAEADDRINUSE, "Address already in use"), ErrorEntry(WSAEADDRNOTAVAIL, "Can't assign requested address"), ErrorEntry(WSAENETDOWN, "Network is down"), ErrorEntry(WSAENETUNREACH, "Network is unreachable"), ErrorEntry(WSAENETRESET, "Net connection reset"), ErrorEntry(WSAECONNABORTED, "Software caused connection abort"), ErrorEntry(WSAECONNRESET, "Connection reset by peer"), ErrorEntry(WSAENOBUFS, "No buffer space available"), ErrorEntry(WSAEISCONN, "Socket is already connected"), ErrorEntry(WSAENOTCONN, "Socket is not connected"), ErrorEntry(WSAESHUTDOWN, "Can't send after socket shutdown"), ErrorEntry(WSAETOOMANYREFS, "Too many references, can't splice"), ErrorEntry(WSAETIMEDOUT, "Connection timed out"), ErrorEntry(WSAECONNREFUSED, "Connection refused"), ErrorEntry(WSAELOOP, "Too many levels of symbolic links"), ErrorEntry(WSAENAMETOOLONG, "File name too long"), ErrorEntry(WSAEHOSTDOWN, "Host is down"), ErrorEntry(WSAEHOSTUNREACH, "No route to host"), ErrorEntry(WSAENOTEMPTY, "Directory not empty"), ErrorEntry(WSAEPROCLIM, "Too many processes"), ErrorEntry(WSAEUSERS, "Too many users"), ErrorEntry(WSAEDQUOT, "Disc quota exceeded"), ErrorEntry(WSAESTALE, "Stale NFS file handle"), ErrorEntry(WSAEREMOTE, "Too many levels of remote in path"), ErrorEntry(WSASYSNOTREADY, "Network system is unavailable"), ErrorEntry(WSAVERNOTSUPPORTED, "Winsock version out of range"), ErrorEntry(WSANOTINITIALISED, "WSAStartup not yet called"), ErrorEntry(WSAEDISCON, "Graceful shutdown in progress"), ErrorEntry(WSAHOST_NOT_FOUND, "Host not found"), ErrorEntry(WSANO_DATA, "No host data of that type was found") }; const int kNumMessages = sizeof(gaErrorList) / sizeof(ErrorEntry); .