File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -301,14 +301,14 @@ static void write_context_add_specialize(
301
301
cpp_full_name
302
302
),
303
303
[&] {
304
- ctx.write (std::format (" _ctx.add<{}>(new_component)" , cpp_full_name));
304
+ ctx.write (std::format (" _ctx.add<{}>(new_component); " , cpp_full_name));
305
305
}
306
306
);
307
307
} else {
308
308
block (
309
309
ctx,
310
310
std::format (" template<> auto add<{}>() -> void" , cpp_full_name),
311
- [&] { ctx.write (std::format (" _ctx.add<{}>()" , cpp_full_name)); }
311
+ [&] { ctx.write (std::format (" _ctx.add<{}>(); " , cpp_full_name)); }
312
312
);
313
313
}
314
314
@@ -346,9 +346,13 @@ static auto write_context_remove_specialize(
346
346
auto full_name = ecsact_meta_decl_full_name (decl_id);
347
347
auto cpp_full_name = cpp_identifier (full_name);
348
348
349
- block (ctx, std::format (" template<> auto remove<{}>()" , cpp_full_name), [&] {
350
- ctx.write (std::format (" return _ctx.remove<{}>();\n " , cpp_full_name));
351
- });
349
+ block (
350
+ ctx,
351
+ std::format (" template<> auto remove<{}>() -> void" , cpp_full_name),
352
+ [&] {
353
+ ctx.write (std::format (" return _ctx.remove<{}>();\n " , cpp_full_name));
354
+ }
355
+ );
352
356
353
357
ctx.write (" \n " );
354
358
}
You can’t perform that action at this time.
0 commit comments