Skip to content

Conversation

@blowekamp
Copy link
Member

Inputs slots can have multiple types, current behavior is to throw an exception when the getter does not match the current type. For example if a image is asked for when a constant is set.


EXPECT_NO_THROW(filter->SetConstant1(1));
EXPECT_NO_THROW(filter->GetInput());
EXPECT_ANY_THROW(filter->GetInput());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this case throws in debug but not release... This behavior comes from the Ternay ( and maybe binary ) base classes.

Inputs slots can have multiple types, current behavior is to throw an
exception when the getter does not match the current type. For example
if a image is asked for when a constant is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant