-
Notifications
You must be signed in to change notification settings - Fork 3k
Remove template walls #7303
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
Remove template walls #7303
Conversation
What's the impact on doxygen rendering ? |
@pan- I'm struggling on how to show it before the CI runs, but we should now only see one set of function overloads instead of every set of overloads for each parameter list: |
892576b
to
01c6c3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A better option would be to have a single documentation with varargs for doxygen:
#if defined(DOXYGEN_ONLY)
// single signature and documentation
#else
// regular code
#endif
It would clean the output and avoid error from the CI jobs that test there is no warnings in the doc.
01c6c3e
to
ba9fdf5
Compare
Oh I see, we could do that too, although it would clutter the header file. I'm not sure it's needed, the CI errors were about a misnamed parameter. |
ba9fdf5
to
bf32121
Compare
By selectively removing doxygen comments, we can present only the useful function documentation to users. Note that in C++11 these would just be vararg functions. In: - EventQueue.h - call - call_in - call_every - event - Event - constructor - Callback - constructor - attach - callback
bf32121
to
66b0ee2
Compare
I got no strong opinion on this; the advantage is the possibility to use variadic templates syntaxe for the documentation. It may make the intent clearer rather than having the function with the most overloads. |
Oh! I understand now. That makes sense, let's see what that looks like. |
@geky Making a note here that this is still open. |
Closing this since no update has occurred in two weeks. Feel free to reopen once an update is available. |
@geky Please update this. This was requested externally. |
Currently working on it on the branch outside of this pr, will reopen when ready for review |
Description
By selectively removing doxygen comments, we can present only the useful function documentation to users. Note that in C++11 these would just be vararg functions.
Still included are a single overload for functions + args, member function + args, and function + state + args.
In:
cc @AnotherButler, @pan-, @kegilbert
Pull request type