"fungos" wrote in message
news:e763e59d0612080512k4f02b88cnee2732030a95a5ff@mail.gmail.com...
Well, I still having trouble to get mem_fun working. multi_index accept
boost mem_fn?
Joaquin, the const still wont work. I stripped down the sample to this code:
[code]
#include
#include
#include
using boost::multi_index_container;
using namespace ::boost::multi_index;
class Entry
{
private:
int size;
public:
Entry(int s) : size(s) {}
int getSize() const { return size; }
};
typedef multi_index_container<
Entry,
indexed_by<
ordered_non_unique // line 23
Doesn't this work?
ordered_non_unique< const_mem_fun
>
>
EntryCollection;
void main() {
EntryCollection entries;
Entry a(3);
entries.insert(a); // line 33
}
Jeff Flinn