-
Notifications
You must be signed in to change notification settings - Fork 504
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
Fix all weird out parameters int *ret
in the codebase
#1479
Conversation
@jihuayu In |
@jihuayu Please, have a look at |
I will fix it.
@torwig Thank you for bringing this to my attention. While it is true that There are two possible solutions to the current issue:
std::string Integer(bool data) { return Integer(data ? 1 : 0); } Personally, I am inclined towards the second solution. Do you have any other suggestions? |
@jihuayu How about adding the |
@git-hulk |
@jihuayu I think instead of adding a new function we can simply write |
@torwig Sounds good to me too. |
But now there's another issue. If someone passes a bool type arguments to the |
@jihuayu Perhaps, we can add |
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.
Generally, LGTM.
Good job, @jihuayu !
@jihuayu We already have
|
I think function name |
The current solution is good for me. My point is from the reply API, we indeed have the boolean type though it will convert to the integer string in the underly. |
Hello, I have fixed all mentioned above. Is there anything else that needs to be corrected? |
@jihuayu Thanks for your contribution. |
I have followed the rules below and completed all the modifications.
#1451 (comment)