22 Jun
2010
22 Jun
'10
6:52 p.m.
AMDG Peter Barnes wrote:
I need to create an index using a std:vector as the sort key. boost::lamda and std::sort seem just the thing:
<snip> // Container wrapper class Container { std::vector<int> _v; public: Container(std::vector<int> v) : _v(v) { } ; const int operator[](const int i) { return _v[i]; } };
<snip>
I don't understand the error message, and can't make out from the documentation why this doesn't work. Do I need to extend the return type deduction system somehow? But operator[] is not one of the action types.
It's other_action