Mojo: Support enums as map keys in WTF |
||
Issue description
Currently you cannot use enums as map keys in mojom if you're compiling for blink e.g. this will fail:
interface Iface {
enum MyEnum {
MY_VAL,
};
MyMethod(map<MyEnum, uint8> entries);
};
The reason is that we use WTF::HashMap in blink and there's no DefaultHash instance for Mojo enums.
,
Mar 6 2017
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Mar 6 2017