
Thomas d'Erceville wrote:
Hello,
I'm using a mapped file in order to share my objects between many processes and I already have my own kind of key to identify them. So instead of linking them to a
in the function construct(), I would like to use my own type (providing convenient functions such as less(), operator==, ...) So I mean, instead of : MyObject * my_object = mapped_file.construct<MyObject>("object_name"); I want to known if there is a way to write something like : MyKey *object_key*(...) MyObject * my_object = mapped_file.construct<MyObject>(*object_key*);
I'm taking a look at the section "Building custom indexes http://www.boost.org/doc/libs/1_39_0/doc/html/interprocess/customizing_inter..." but I am not sure to be able to solve my problem with that.
Could someone confirm?
No, you can't. Interprocess only supports name-based keys. Best, Ion