Groups
Groups
Sign in
Groups
Groups
javacpp
Conversations
About
Send feedback
Help
Example of creating C++ object with non-default constructor?
94 views
Skip to first unread message
Paul Jakubik
unread,
Mar 17, 2016, 8:21:15 PM
3/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacpp
Hi,
The JavaCPP examples I have found so far that create a C++ object use a default, no argument, constructor.
What if I need to pass an int argument to the C++ constructor? Are there examples of this? Can I do that?
Paul
Samuel Audet
unread,
Mar 18, 2016, 12:20:52 AM
3/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacpp...@googlegroups.com
Sure, there's a PointerVectorVector(long n) constructor here, for example:
https://github.com/bytedeco/javacpp#using-complex-c-types
Samuel
Reply all
Reply to author
Forward
0 new messages