Hi all,
I am new to Python so apologies in advance for my ignorance. I have created a C++ DLL which needs to be wrapped for Python users.
The problem is that some of the functions for my DLL require std::vector as argument to be passed. From what I understand, the equivalent in Python to std::vector is list.
This is the definition of the fucntion that needs the std::vector:
int userStreamInput( const std::vector <unsigned char > & )
BOOST_PYTHON_MODULE( _RFCPython )
{
class_< UIImpl >( "RFCPython" )
.def( init< const std::string& > () )
.def( "stream", &UIImpl::userStreamInput )
;
}
Does anyone have suggestions on how to pass a std::vector to my function?
Thanks,
Ste