WX_DECLARE_LIST_XO(elT*, liT, decl)
#define WX_DECLARE_LIST_XO(elT, liT, decl) \
WX_DECLARE_LIST_XO(elT*, liT, decl)
#define WX_DECLARE_LIST_XO(elT, liT, decl) \
- bool operator()( const elT X, const elT Y ) const \
- { return ( m_CompFunc( X, Y ) < 0 ); } \
- }; \
+ bool operator()(const elT X, const elT Y) const \
+ { \
+ return m_CompFunc ? \
+ ( m_CompFunc( X, Y ) < 0 ) : \
+ ( X > Y ); \
+ } \
+ }; \
typedef elT _WX_LIST_ITEM_TYPE_##liT; \
static void DeleteFunction( const _WX_LIST_ITEM_TYPE_##liT X ); \
public: \
class compatibility_iterator \
{ \
private: \
typedef elT _WX_LIST_ITEM_TYPE_##liT; \
static void DeleteFunction( const _WX_LIST_ITEM_TYPE_##liT X ); \
public: \
class compatibility_iterator \
{ \
private: \