success of a multi-index container insertion

Hello all! As I need to know if a insertion in my multi-index container succeded or not I've asked me and now you: How can I get a bool from inserting a new object? My problem: MyMultiIndex mmi; MyClass mc0; MyClass mc1 = mc0; mmi.insert(mc0); // mc0 inserted mmi.insert(mc1); // mc1 not inserted Thanks, Goran

As I need to know if a insertion in my multi-index container succeded or not I've asked me and now you: How can I get a bool from inserting a new object?
My problem:
MyMultiIndex mmi; MyClass mc0; MyClass mc1 = mc0; mmi.insert(mc0); // mc0 inserted mmi.insert(mc1); // mc1 not inserted
http://www.boost.org/doc/libs/1_38_0/libs/multi_index/doc/reference/ord_indi...
"std::pair
participants (2)
-
Goran
-
Igor R