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
C++ implementation should be namespaced #197
Comments
Yes, that’s a good point. Do you want to issue a PR? |
I have already patches to get the entirety of roaring to build as C++, which corrects issues like spanning header files with Namespaces similarly should not span headers and only roaring-specific content, so they can go at those locations. So:
I first tried everything under one namespace, which works but it would lead people to saying Then split this up into ::roaring for the C++ exports, ::roaring::api for the C public API vs. ::roaring::internal for service routines. To the extent anyone knows what namespace best practices are, it tries to follow them by not doing |
@AE1020 Could you issue a PR? |
This has been fixed. |
If you use CRoaring as it comes in the library, it generates a name clash with the Point Cloud Library. This is because of the
#include "roaring.h"
line in the head ofroaring.hh
, causing it to bring many functions into the global namespace.I have "fixed this" by creating
roaring.h
And including that directly, but it seems like this should be handled library-level.
The text was updated successfully, but these errors were encountered: