Why can't I use a user defined enumeration type (derived from uint32) as the key type for a containers.Map object?
Show older comments
I have derived a enumeration type from uint32. I want to use this enumeration type as keys in a containers.Map object. However, I get the following error when instantiating the map:
Error using containers.Map
Unsupported key specified. See documentation for valid key types.
This puzzles me! My enumeration class is indeed numeric, so it should be casted internally. Why is this? What could be done (apart from up-casting the keys)?
Thanks in advance,
Per
1 Comment
Per Appelgren
on 13 Jun 2013
Answers (0)
Categories
Find more on Dictionaries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!