-
Notifications
You must be signed in to change notification settings - Fork 111
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 ur::print namespace #1086
Comments
Hi @PatKamin, What do you think of this? |
The reason the This is unfortunately a compromise, because having the namespace makes using the ostream overloads a little bit more difficult as they are not picked up automatically for global C/plain-old-data structs. Can you elaborate how the function you linked |
This part is confusing me. How exactly is providing |
If the |
These overloads make choices on how the output is formatted, especially for structs and arrays. There might be cases where software might want to use a different implementation, while still having access to other ur::print functions. This is not a particularly strong argument (since we control all uses of this API at the moment and you can always define your own overload in a different scope), but I felt the trade-off worth it.
Makes sense. I don't feel too strongly about this either way. If it makes things easier, I'm ok with removing the namespace. |
@PatKamin, did your changes fix the issue? Should we close it now? |
I think it's ok now. @omarahmed1111, can we close this issue? |
Yeah, this can be closed. |
Thanks @PatKamin |
While working on the third adapters branch bump PR. We been faced with a problem were this function was preventing the call for all
ur::print
overloaded print functions (this is after addingusing namespace ur::print
).One of the solutions to this is to delete the
ur::print
namespace fromur_print.hpp
file. We was wandering if this namespace have another purpose or why is it needed?The text was updated successfully, but these errors were encountered: