Skip to content

Commit

Permalink
Fixes RTTI for generated class
Browse files Browse the repository at this point in the history
Pure virtual constructor makes a class header-only.
This breaks RTTI when class is sued from several
libraries.

Signed-off-by: Yauheni Khnykin <[email protected]>
  • Loading branch information
Hsilgos committed Feb 5, 2024
1 parent 97fdf78 commit f3fe196
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class {{>cpp/CppExportMacro}}{{>cpp/CppAttributesInline}}{{resolveName}}{{!!
}}{{#if this.parents}}: {{#this.parents}}public {{resolveName this.type "FQN"}}{{#if iter.hasNext}}, {{/if}}{{/this.parents}}{{/if}} {
public:
{{resolveName}}();
virtual ~{{resolveName}}() = 0;
virtual ~{{resolveName}}();

{{#ifPredicate "needsInnerForwardDeclarations"}}
public:
Expand Down

0 comments on commit f3fe196

Please sign in to comment.