A
Austin
Here is my program:
class Test {
private:
int _num;
};
int main()
{
set<Test> aSet;
Test aTest;
aSet.insert(aTest);
return 0;
}
when compiling, vs2003 complain about operator <. If I create a class which
will be used in set, I have to implement or overload operator <? Thanks in
advance.
class Test {
private:
int _num;
};
int main()
{
set<Test> aSet;
Test aTest;
aSet.insert(aTest);
return 0;
}
when compiling, vs2003 complain about operator <. If I create a class which
will be used in set, I have to implement or overload operator <? Thanks in
advance.