5 Dec
2011
5 Dec
'11
10:10 p.m.
Another (last ?) question: how is possible simulate operator== for boost multi_index?
No need to simulate, comparison operators are already defined for MIC. You should only provide the relevant ops for your elements. In case of mutable_pair it would look like this: template<typename K,typename V> bool operator ==(const mutable_pair<K, V> &lhs, const mutable_pair<K, V> &rhs) { return lhs.first == rhs.first && lhs.second == rhs.second; }