File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -297,17 +297,19 @@ static void write_context_add_specialize(
297
297
block (
298
298
ctx,
299
299
std::format (
300
- " template<> auto add<{0}>(const {0}& new_component)" ,
300
+ " template<> auto add<{0}>(const {0}& new_component) -> void " ,
301
301
cpp_full_name
302
302
),
303
303
[&] {
304
304
ctx.write (std::format (" _ctx.add<{}>(new_component)" , cpp_full_name));
305
305
}
306
306
);
307
307
} else {
308
- block (ctx, std::format (" template<> auto add<{}>()" , cpp_full_name), [&] {
309
- ctx.write (std::format (" _ctx.add<{}>()" , cpp_full_name));
310
- });
308
+ block (
309
+ ctx,
310
+ std::format (" template<> auto add<{}>() -> void" , cpp_full_name),
311
+ [&] { ctx.write (std::format (" _ctx.add<{}>()" , cpp_full_name)); }
312
+ );
311
313
}
312
314
313
315
ctx.write (" \n " );
You can’t perform that action at this time.
0 commit comments