logo       

Re: SWIG-PERL-Vector of pointers: msg#00092

programming.swig

Subject: Re: SWIG-PERL-Vector of pointers

On 2003.11.15 01:55, "Nair, Sanjay S" wrote:
Hi,

I have a structure defined and my .i file has following entries:

%module SLI
namespace std {
specialize_std_vector(ABC::BpDataStruct_SLI*);
}

Don't do this. specialize_std_vector is a macro which is only used for built-in types and it's an implementation detail. You shouldn't even know it exists---because if you did, you could instantiate it with the wrong number of arguments, as above, and you could get all kinds of weird syntax errors :)

The rest of the file looks ok to me.

Let me know if the problem persists. Also, there was a bug in SWIG 1.3.19 which could give you problems if a vector was returned from a function by copy. That will be fixed in SWIG 1.3.20, soon in a website near you.

Hope this helps,
Luigi
_______________________________________________
Swig maillist - Swig@xxxxxxxxxxxxxxx
http://mailman.cs.uchicago.edu/mailman/listinfo/swig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise