We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The parser fails with exception specification like
int myfunc() throw(...){}
Without "..." everything is fine
int myfunc1() throw(){ } int myfunc2() throw(int){ }
see also https://msdn.microsoft.com/en-us/library/wfa0edys.aspx
The text was updated successfully, but these errors were encountered:
Seems to be a Microsoft specific extension?
Sorry, something went wrong.
Yes, this is "Nonstandard Behavior" (see also https://msdn.microsoft.com/en-us/library/x84h5b78.aspx)
This modification will solve the issue
b.rule(typeIdList).is( b.firstOf( b.sequence(typeId, b.optional("..."), b.zeroOrMore(",", typeId, b.optional("..."))), // C++ "..."// Microsoft extension ) );
Would do it like this, think "..." is not a typeIdList?
b.rule(dynamicExceptionSpecification).is( CxxKeyword.THROW, "(", b.optional(b.firstOf( typeIdList, // C++ "..." // Microsoft extension )), ")" );
Actually I am not sure whether "..." is not a synonym for any type in this context. see also http://en.cppreference.com/w/cpp/language/try_catch
The catch-all clause catch(...) matched exceptions of any type.
The Exception Specifications (throw) (C++) documentation on MSDN uses ... instead typeIdList
...
typeIdList
Bertk
Successfully merging a pull request may close this issue.
The parser fails with exception specification like
Without "..." everything is fine
see also https://msdn.microsoft.com/en-us/library/wfa0edys.aspx
The text was updated successfully, but these errors were encountered: