Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkclass: introduce *.ti class field attribute notify_args #10233

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link
Member

If specified e.g. on T#foo_bar, then T#SetFooBar(), T#NotifyFooBar() and T::OnFooBarChanged get an additional argument of type const NotifyFieldArgs<T::NotifyFooBarArgs>&. That type can be customized like this:

template<>struct NotifyFieldArgs<T::NotifyFooBarArgs>{int I=42;};

This is the absolute minimum required for my idea #10082 (comment) how to fix this:

Additionally, Checkable#next_check has to use this to pass an additional bool flag across the cluster which triggers Checkable::OnNextCheckUpdated. Compatibility isn't a problem as Empty, which is returned if a desired Dictionary key is missing, is convertible to bool. So even future versions can just omit the flag if false.

If specified e.g. on T#foo_bar, then T#SetFooBar(), T#NotifyFooBar() and T::OnFooBarChanged get an additional argument of type `const NotifyFieldArgs<T::NotifyFooBarArgs>&`. That type can be customized like this:

`template<>struct NotifyFieldArgs<T::NotifyFooBarArgs>{int I=42;};`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant