Descriptionmus: Remove unnecessary const from property TypeConverter templates
This allows them to be used with the idiomatic mojo::ConvertTo<Foo>() template.
(In particular, ConvertTo<Foo>(my_vector) matches my_vector to "const U&" to
determine which TypeConverter to call. If my_vector is either a "std::vector"
or a "const std::vector" it ends up looking for TypeConverter<Foo, std::vector>.
Since the second TypeConverter template parameter isn't const, the compiler
can't find our existing TypeConverter<Foo, const std::vector> functions. These
functions don't need their template parameter to be const std::vector, as they
use "const std::vector&" for their inputs regardless.)
BUG=none
TEST=compiles
Committed: https://crrev.com/da88c32858fdbc6040b07d51019d9f564e37416e
Cr-Commit-Position: refs/heads/master@{#383366}
Patch Set 1 #Patch Set 2 : rebase and fixed some test files #Patch Set 3 : format #Messages
Total messages: 17 (6 generated)
|