-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support STD-like "Throws:" clause #686
Comments
What’s the proposed syntax? It would be a shortcut for something achievable with |
I understand that the present I propose something like ordinary text: /**
@stdthrows Whatever the selected constructor of `T` throws.
*/ |
Mmmm... So https://www.doxygen.nl/manual/commands.html#cmdthrow without the |
In a way, yes. |
What about something like
|
Another discussion: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1656r1.html |
Or maybe what we need are shortcuts to https://en.cppreference.com/w/cpp/language/exceptions#Exception_safety |
This is not exception safety.
I need the docs to be concise. |
In the C++ Standard library specification it is customary to say:
Which means "this function throws nothing if preconditions are satisfied" (otherwise it is free to throw).
And:
Which makes more sense than a table, in case of function templates.
Can you add support for this? Even if it means a different marker, such as
@stdthrows
.The text was updated successfully, but these errors were encountered: