|
welder 0.1.0
Bindings for annotated C++ types, from C++26 reflection
|
The policy annotation values. More...
Variables | |
| constexpr detail::policy_spec | automatic {policy_kind::automatic} |
| constexpr detail::policy_spec | opt_in {policy_kind::opt_in} |
| constexpr detail::weld_protected_spec | weld_protected {} |
| Admit the type's protected members into resolution — bare (all languages) or called with languages to scope it. | |
The policy annotation values.
Usage: [[=welder::policy::opt_in]] (auto is reserved, hence automatic).
|
inlineconstexpr |
Definition at line 400 of file annotations.hpp.
|
inlineconstexpr |
Definition at line 401 of file annotations.hpp.
|
inlineconstexpr |
Admit the type's protected members into resolution — bare (all languages) or called with languages to scope it.
Combinable with automatic / opt_in (it is a separate annotation, not a third policy kind): weld_protected decides that protected members are visible to the resolution; the policy kind and the member marks then resolve them exactly like public ones. Constructors are exempt for now (a protected constructor stays unbound — construction goes through a trampoline where one exists); private members are never admitted.
Definition at line 411 of file annotations.hpp.