Skip to content

Conversation

@kornilova203
Copy link
Member

This reduces number of template functions

@kornilova203 kornilova203 merged commit 7f1ebd4 into 0.3 Jul 30, 2018
@kornilova203 kornilova203 deleted the locatable-type branch July 30, 2018 06:57
return enumPointer->getLocation();
}
assert(false &&
"Generated typedef may reference only struct, union or enum");
Copy link
Member

Choose a reason for hiding this comment

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

Since assertions can be deactivated at compile time (at least in C) I am not sure they are a good means of error reporting.

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, it's better to throw an exception

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