-
Notifications
You must be signed in to change notification settings - Fork 15
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
Autoconfig/set from member #964
Conversation
AutoCurrentContext ctxt; | ||
AutoRequired<MyConfigurableClass> mcc; | ||
|
||
mcc->b = 10442; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MyConfigurableClass::b
is an std::atomic
, not an observable. The system is behaving as designed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...except that it's crashing, I'll look into that.
41ee407
to
86d7bab
Compare
44ccd8e
to
86d7bab
Compare
Actually, the default value here will remain the default for objects not in the context.
Most of these test failures are fatal after the first violation, and successive violations don't actually tell us much. Use `ASSERT` instead where possible, and break up tests where `EXPECT` would have been useful.
Looks good to me! |
Auto config does not behave as expected when setting values directly from a field that is injected into a context.