| Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
|
| index 8c61c86ab18527ffdcb80e789d8aee1a44c4e6a2..279665296f1f6e2d82c6dc3f569e057b1baa9586 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl
|
| @@ -37,8 +37,13 @@
|
|
|
| bool {{struct.name}}::Equals(const {{struct.name}}& other) const {
|
| {%- for field in struct.fields %}
|
| +{%- if field.kind|is_typemapped_kind %}
|
| +{# TODO(rockot): Consider adding support for native equality testing. #}
|
| + NOTREACHED() << "Equality testing not supported with typemapped fields.";
|
| +{%- else %}
|
| if (!mojo::internal::ValueTraits<{{field.kind|cpp_wrapper_type}}>::Equals(this->{{field.name}}, other.{{field.name}}))
|
| return false;
|
| +{%- endif %}
|
| {%- endfor %}
|
| return true;
|
| }
|
|
|