-
Notifications
You must be signed in to change notification settings - Fork 577
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 generate of @Const on function #224
Conversation
@saudet PTAL |
The |
Yes. This is a callback.
But the generated cpp class is wrong. Because all the generated function is const. The compiler complains that the real function(eg. |
Right, so what about this. Let's use the the third value of |
Oh, I didn't consider |
Hi @saudet
|
I can't understand why solving the compatibility problem needs to add the third value. As I understand, the compatibility problem is there is code that |
Yes, the first one is for a value like Right now putting |
Got it 😄 . @saudet Please take a look. |
Looks better, thanks! But I can see at least 2 remaining problems:
|
320f5b5
to
d229c4a
Compare
You are right. Patch is added. |
Remove unnecessary warning about const in Generator
Ok, looking good! I fixed 2 remaining small issues in the commit above. Let me know if this is alright and we'll be able to merge this. Thanks! |
Ok, thank you for your patience. 😄 |
Thanks to you for your contribution! |
For the code above, javacpp generates mismatched cpp class.
const
, but in the generated cpp class, all functions isconst
and@Const
is on the classCacheExecutor
, not on the function level.const
for function arguments.