
Hi, I have a bimap typedef bimap< multiset_of< tagged< Person*, consultant> >, multiset_of< tagged< Company*, client> >, with_info< tagged< ConsultancyContract*, contract> >
Consultancy;
initialized as follows Consultancy consultancy; Person John("John"), Jane("Jane"); Company Dell("Dell"), HP("HP"); ConsultancyContract JohnContractD(10,1); ConsultancyContract JaneContractD(20, 2); ConsultancyContract JaneContractH(30, 3); consultancy.insert(Consultancy::value_type(&Jane, &Dell, &JaneContractD)); consultancy.insert(Consultancy::value_type(&Jane, &HP, &JaneContractH)); and I want to remove only the specific association Jane<->Dell and so I'm using consultancy.erase(Consultancy::value_type(&Jane, &Dell)); but then the resulting consultancy bimap is empty, while I expect the association Jane<->HP to be there yet. If I add before erasing consultancy.insert(Consultancy::value_type(&John, &Dell, &JohnContractD)); and then consultancy.erase(Consultancy::value_type(&Jane, &Dell)); all the associations concerning Jane are removed. What I'm doing wrong? How to erase a single association? Best, Vicente