L
Lighter
#include <set>
using namespace std;
int main()
{
typedef set<int> INTSET;
INTSET coll;
INTSET::iterator pos = coll.begin();
*pos = 9; // VS 2005 should allowes this, why?
}
the set will contain two same values, it violates the rule that a set
at most contains one of each key value.
using namespace std;
int main()
{
typedef set<int> INTSET;
INTSET coll;
INTSET::iterator pos = coll.begin();
*pos = 9; // VS 2005 should allowes this, why?
}
the set will contain two same values, it violates the rule that a set
at most contains one of each key value.