Would anyone know why this compiles with the following error message:
multi_index\ordered_index.hpp(941): error C2064: term does not evaluate to a function taking 2 arguments
The insert fails - If commented out, it works fine:
member<CustomItem, int, &CustomItem::mOne >,
member<CustomItem, int, &CustomItem::mTwo>,
member<CustomItem, int, &CustomItem::mThree>
If I take the additional sequence index off the declaration I can insert my items with no compilation issues.
shared_ptr<CustomItem> customItem( new CustomItem() );
I just wanted two indexs, the first one so that they are ordered by composite key, which works fine. The second being sequenced so that the insertion order of the container is preserved.
Even if I explicitly reference the first index, mCustomItems.get<0>().insert - that still fails.
Does anyone know why simply adding the additional sequenced index would cause this compilation issue?
VS 2010 SP1