Boost logo

Boost Users :

From: Parag Gadkari (parag.gadkari_at_[hidden])
Date: 2006-04-06 15:47:58


I am having trouble while using multi index container with the "managed c++"
component. Here is the typedef that the compiler won't accept.

typedef multi_index_container<
  gcroot<interface_entity*>,
  indexed_by<
    ordered_unique<identity<gcroot<interface_entity*> > >,
    ordered_non_unique<member<gcroot<interface_entity*>,
int,&interface_entity::entity_drawingid> >,
>
> entity_collection;

The real deal is with the member template which needs the address of member
variable of the interface_entity class. Entity class is an abstract Managed
type (specified with __gc), and it is not allowed to take the address of a
non-static member of a managed type.

Does anybody know of a workaround?

Thanks
Parag



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net