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 PM3/17/16
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 AM3/18/16
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