So, in order to allow the use of GUIDS in an STL map, and to also allow
easy comparision ..if( guid1 == guid2)..while still keeping GMPI_GUID
plain-C compatible, define the operators as non-member functions...
Best Regards, jeff
typedef struct GMPI_GUID { u_int32_t Data1; u_int16_t Data2; u_int16_t Data3; unsigned char Data4[ 8 ]; }GMPI_GUID;
#ifdef __cplusplus bool operator==( const GMPI_GUID &one, const GMPI_GUID &other ); bool operator<( const GMPI_GUID &one, const GMPI_GUID &other ); #endif
---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.
Archive: //www.freelists.org/archives/gmpi Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe