From: Robin E. <lo...@lo...> - 2006-01-28 09:56:31
|
Kevin Ruland wrote: > Robin, Hi, > The support for std::string right now is rather limited. By swig 1.3.29 > we should have moved to the unified typemap library in which case > std::string support will be more full featured. And that will take a while? :) > Reference types are handled exactly the same way as pointer types in > SWIG. In order to use a std::string&, you will need to use the > cpointer.i library to create wrapper classes for std::string*. > Ok, so %module example %include "std_string.i" %include "cpointer.i" %pointer_functions(std::string, std::stringp) void test( std::string& in ); and in php $in = new std__stringp(); test( $in ); ? Or can char* be used as an INOUT variable? How would memory allocation and such be solved that way? regards, Robin |