-
Notifications
You must be signed in to change notification settings - Fork 527
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
[BUG] Remove using namespace
from header files
#2630
Comments
@mdemoret-nv If this is a significant problem, and we don't want 'using' directives, this probably needs a corresponding feature request to update the style checking code. |
I dont know if this is a "significant" problem since we have been building and developing without a style checker for a while. This bug could be broken up into 2 parts: finding and fixing existing issues (bug) and preventing future ones (fea). The amount of work really is going to depend on how strict we want to be. We need to answer the following questions first:
I think there are very few
Also, I think it wouldnt be bad to remove this one as well: https://github.com/rapidsai/cuml/blob/branch-0.15/cpp/src_prims/matrix/matrix.cuh#L32 |
This issue has been marked stale due to no recent activity in the past 30d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be marked rotten if there is no activity in the next 60d. |
This issue has been marked rotten due to no recent activity in the past 90d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. |
This issue was partially addressed by PR #3402. A quick search shows this issue is still needed but the impact is significantly reduced. |
This issue has been labeled |
Ran into an issue where a
using namespace
directive caused a build failure due to a collision betweenMLCommon::swap()
andstd::swap
. A quick search of header files returns 38 hits forusing namespace
in any.cuh
,.h
or.hpp
file. These should be removed from header files where possible, especially if the statement is not in a namespace directive since this will pollute the global namespace. There may only be a few that are in the global namespace, but it should be audited and fixed to prevent future issues.One example of this is here: https://github.com/rapidsai/cuml/blob/branch-0.15/cpp/src/dbscan/adjgraph/algo.cuh#L29.
The text was updated successfully, but these errors were encountered: