Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
index 3f426a5f04bbe9d2d786a8cbcc5f7a17fdd45f45..21f29680ab20c006e0888f05c07466d29a9b85b7 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
@@ -21,6 +21,9 @@ class {{struct.name}} { |
{{struct.name}}(); |
~{{struct.name}}(); |
+{% if struct|is_cloneable_kind %} |
+ {{struct.name}}Ptr Clone() const; |
darin (slow to review)
2014/10/02 20:14:13
Doesn't this potentially conflict with a user defi
Aaron Boodman
2014/10/10 20:27:47
It seems like it would. Since I am going to add Eq
yzshen1
2014/10/10 20:30:21
This question has been resolved.
Clone() is defin
Aaron Boodman
2014/10/10 21:04:15
per our IM chat, this isn't resolved -- it is poss
darin (slow to review)
2014/10/12 17:57:30
Right, good catch. I'd be OK dictating that field
|
+{%- endif %} |
{#--- Getters #} |
{% for field in struct.fields %} |