-
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
Add support for ADL-controlling namespaces #679
Comments
If this is a widespread pattern, MrDocs needs to support it. The design and implementation of this option doesn't look so simple though. |
@vinniefalco any ideas on how this feature could be designed? |
This is a case where we have to be very careful interpreting what a user wants. Hiding a namespace seems to resolve the immediate problem in the short-term but does not sound like a good solution. The "ADL-controlling namespace" idiom is a workaround which should not be visible in the user documentation. The result of the workaround is to present My first thought on how to accomplish this, is that we need to tell Mr. Docs that the idiom is in use. And then have a post-processing step adjust the metadata to reflect it. Maybe add a "IsADLDisabled" flag or something. Hiding |
There is an advice for libraries to introduce another intermedite namespace in order for a single type not to intercept every single function from your library:
I don't know if there is a name for this pattern, so let's say that
x_guard
is an ADL-controlling namespace.I use such ADL-controlling namespaces in my libraries: https://github.com/akrzemi1/markable/blob/master/include/ak_toolkit/markable.hpp#L721-L743
Could you add a configuration parmeter that hides a namespace
x_guard
from the user in the docs?The text was updated successfully, but these errors were encountered: