Skip to content

Commit

Permalink
Refs #21823. Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González Moreno <ricardo@richiware.dev>
  • Loading branch information
richiware committed Oct 8, 2024
1 parent 48efdcd commit 73b0cda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,15 @@ $if(member.typecode.primitive)$
member_destructor_ = nullptr;
m_$member.name$ = $member_default_init(member)$;
$else$
member_destructor_ = [&]() {$union_member_destroy_call(member)$\};
member_destructor_ = [&]()
{
$if(member.typecode.isAliasType)$
$if(member.typecode.hasScope)$
using namespace $member.typecode.scope$;
$endif$
$endif$
$union_member_destroy_call(member)$\
};
new(&m_$member.name$) $member_type_declaration(member)$();
$endif$
>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ main(ctx, definitions) ::= <<
$fileHeader(ctx=ctx, file=[ctx.filename, "main.cxx"], description=["This file acts as a main entry point to the application."])$

#include <csignal>
#include <cstring>
#include <functional>
#include <iostream>
#include <stdexcept>
Expand Down

0 comments on commit 73b0cda

Please sign in to comment.