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

Autoconfig/set from member #964

Merged
merged 12 commits into from
Jul 11, 2016
Merged

Autoconfig/set from member #964

merged 12 commits into from
Jul 11, 2016

Conversation

yeswalrus
Copy link
Contributor

Auto config does not behave as expected when setting values directly from a field that is injected into a context.

AutoCurrentContext ctxt;
AutoRequired<MyConfigurableClass> mcc;

mcc->b = 10442;
Copy link
Contributor

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.

Copy link
Contributor

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.

@yeswalrus yeswalrus force-pushed the autoconfig/set-from-member branch from 41ee407 to 86d7bab Compare July 6, 2016 23:23
@codemercenary codemercenary force-pushed the autoconfig/set-from-member branch from 44ccd8e to 86d7bab Compare July 7, 2016 00:19
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.
@codemercenary codemercenary self-assigned this Jul 7, 2016
@codemercenary codemercenary added this to the v1.0.3 milestone Jul 7, 2016
@yeswalrus
Copy link
Contributor Author

Looks good to me!

@RandomOutput RandomOutput merged commit 2b7b15e into master Jul 11, 2016
@RandomOutput RandomOutput deleted the autoconfig/set-from-member branch July 11, 2016 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants