Article ID: 168078
Article Last Modified on 10/24/2003
/*
Compile options: /GX
*/
#include <list>
using namespace std ;
using namespace std::rel_ops ;
#ifdef WORKAROUND // define WORKAROUND to get around the error
using std::rel_ops::operator!=;
using std::rel_ops::operator>;
#endif
class X {
int N;
public:
X(int n) : N(n) {}
bool operator==(const X& b) const
{ return N == b.N; }
bool operator<(const X& b) const
{ return N < b.N; }
};
list <X> xList;
int main()
{
return 0;
}
Keywords: kbbug kbfix kbvc600fix KB168078