I have a c++/cli class in which I would like to maintain a mapping between a managed string and a native pointer.
Using std::map gives the compiler Warning C4368 (cannot define 'member' as a member of managed 'type': mixed types are not supported).
Using Dictionary gives C3225: generic type argument for 'TValue' cannot be 'native pointer', it must be a value type or a handle to a reference type
How can I achieve this mapping?