
Hi,
I have tried everything so far and maybe it's the sun, the heat or whatever but I can't get flat_multimap from shmem to insert a value.
I have:
typedef boost::shmem::flat_multimap<size_t, myShmNode*, myHashEqual, myShmNodePtrAllocator> MyMultiMap;
and I have tried an insert with a typedef std::pair<size_t,myShmNode*> multiMapNodeType; as an argument to 'insert' without success.
Can someone tell me what sould I put as an argument to the call to 'insert' for the above declaration of a flat_multimap?
Can you give a small example to know what myHashEqual and myShmNodePtrAllocator are defined? flat_multimap is an ordered container (just like std::map) so a the ordering function should be a LessThan like ordering function and not an Equality function. Can you write a small test case just creating a multimap and inserting a value that shows those typedefs? Regards, Ion