Investigate mojo std::string -> base::StringPiece type-mapping |
|
Issue descriptionMojo should support type-mapping for std::string to base::StringPiece automatically, but doesn't seem to be the case. No luck following documentation and can't find any current users/consumers. Revisit pending response on g/chromium-mojo post(https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!topic/chromium-mojo/wvU3rovuhWs).
,
Nov 9
I was a little misleading; by 'should support' I meant that all the docs say that Mojo does support this by default. There's even a valid StringTraits specialization for it here(1), but I'm not sure how to correctly invoke it. Presumably I could follow the general type-mapping workflow to add the mapping but I don't think thats intended, for base::StringPiece anyways. (1) https://cs.chromium.org/chromium/src/mojo/public/cpp/bindings/string_traits_string_piece.h?sq=package:chromium&dr=CSs&g=0 |
|
►
Sign in to add a comment |
|
Comment 1 by skau@chromium.org
, Nov 9