You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When exposing properties to another stage and if that stage property has already been declared, then the property value is not beeing exposed. Is this the intended behavior ?
Stage2 has already a property called timeout
StagePtr stage1 = std::make_shared<stages::CurrentState>();
StagePtr stage2 = std::make_shared<stages::CurrentState>();
std::cout << stage1->properties().get<double>("timeout") << std::endl;
// timeout = 3
stage1->properties().set("timeout", 0.5);
std::cout << stage1->properties().get<double>("timeout") << std::endl;
// timeout = 0.5
stage1->properties().exposeTo(stage2->properties(), { "timeout" });
std::cout << stage2->properties().get<double>("timeout") << std::endl;
// timeout = 3 I would have expected this to be 0.5 ...
declare given property name as other_name in other PropertyMap
Thus, the property is just declared if it doesn't yet exist. Redeclaring a property doesn't modify any of its values.
Looks like, I should improve the docs on property handling...
When exposing properties to another stage and if that stage property has already been declared, then the property value is not beeing exposed. Is this the intended behavior ?
Stage2 has already a property called
timeout
With an undeclared property
The text was updated successfully, but these errors were encountered: