Skip to content

Commit 1f32b02

Browse files
committed
refactor(reflect): avoid deduced return types in the public API
1 parent cf7f36a commit 1f32b02

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/reflect.h2

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ compiler_services: @dll_visible @polymorphic_base @copyable type =
181181
return ret;
182182
}
183183

184-
add_runtime_support_include: (inout this, s: std::string_view) = _=data().includes*.emplace( s );
184+
add_runtime_support_include: (inout this, s: std::string_view) = { _=data().includes*.emplace( s ); }
185185

186186
position: (virtual this)
187187
-> source_position
@@ -223,7 +223,7 @@ compiler_services: @dll_visible @polymorphic_base @copyable type =
223223
) );
224224
}
225225

226-
is_active:(this) = true;
226+
is_active:(this) -> bool = true;
227227
}
228228

229229

@@ -333,9 +333,9 @@ declaration: @dll_visible @polymorphic_base @copyable type =
333333
is_private : (this) -> bool = n*.is_private();
334334
is_default_access: (this) -> bool = n*.is_default_access();
335335

336-
default_to_public : (inout this) = _ = n*.make_public();
337-
default_to_protected: (inout this) = _ = n*.make_protected();
338-
default_to_private : (inout this) = _ = n*.make_private();
336+
default_to_public : (inout this) = { _ = n*.make_public(); }
337+
default_to_protected: (inout this) = { _ = n*.make_protected(); }
338+
default_to_private : (inout this) = { _ = n*.make_private(); }
339339

340340
make_public : (inout this) -> bool = n*.make_public();
341341
make_protected : (inout this) -> bool = n*.make_protected();
@@ -464,7 +464,7 @@ function_declaration: @dll_visible @copyable type =
464464

465465
is_binary_comparison_function: (this) -> bool = n*.is_binary_comparison_function();
466466

467-
default_to_virtual : (inout this) = _ = n*.make_function_virtual();
467+
default_to_virtual : (inout this) = { _ = n*.make_function_virtual(); }
468468

469469
make_virtual : (inout this) -> bool = n*.make_function_virtual();
470470

@@ -655,10 +655,10 @@ type_declaration: @dll_visible @copyable type =
655655
std::string("unexpected error while attempting to add member:\n") + source );
656656
}
657657

658-
remove_marked_members: (inout this) = n*.type_remove_marked_members();
659-
remove_all_members : (inout this) = n*.type_remove_all_members();
658+
remove_marked_members: (inout this) = { n*.type_remove_marked_members(); }
659+
remove_all_members : (inout this) = { n*.type_remove_all_members(); }
660660

661-
disable_member_function_generation: (inout this) = n*.type_disable_member_function_generation();
661+
disable_member_function_generation: (inout this) = { n*.type_disable_member_function_generation(); }
662662
}
663663

664664

0 commit comments

Comments
 (0)