New issue
Advanced search Search tips

Issue 820627 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Feature



Sign in to add a comment

Allow a custom hasher to be specified for Mojo maps.

Project Member Reported by odejesush@chromium.org, Mar 9 2018

Issue description

It seems like Mojo uses unordered_map for map types in its generated C++ files. This can cause problems if the key is a type that does not have a hash function associated with it.

The change below demonstrates and example of this problem:
https://chromium-review.googlesource.com/c/chromium/src/+/951892

The workaround to this problem was to create a typemap:
https://chromium-review.googlesource.com/c/chromium/src/+/942307
 

Comment 1 by dcheng@chromium.org, Mar 11 2018

Cc: dcheng@chromium.org
Labels: -Pri-3 Pri-2
Status: Available (was: Untriaged)

Sign in to add a comment