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

Transformation.cpp: There is no chain, the transform must be applied once #165

Merged
merged 1 commit into from
Jul 11, 2016

Conversation

oleg-alexandrov
Copy link
Contributor

No description provided.

@pomerlef pomerlef merged commit 7179c05 into norlab-ulaval:master Jul 11, 2016
}
if (num_iter != 1)
throw "Transformations: Error, the transform should have been applied just once.";
Copy link
Contributor

Choose a reason for hiding this comment

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

This is going to throw an instance of const char *.
I would suggest throwing something more usual, such as std::runtime_error. Otherwise it is very unlikely that this text will be visible in case of this exception. Most likely the user is going to see something like

terminate called after throwing an instance of 'char const*'
Aborted

instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not give this much thought honestly. Here's a new pull request with the exception type you suggest. #166

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.

3 participants