logo       

RE: SWIG-PERL-Vector of pointers: msg#00123

programming.swig

Subject: RE: SWIG-PERL-Vector of pointers

Types generated by const and non const vectors are different

%template (Byte_vector) std::vector<unsigned char>;

int ABC( std::vector<unsigned char>& pvReadArray,
const std::vector<unsigned char>& pvWriteArray);


code generated for checking the type for pvReadArray is different that
that of prWriteArray.

I have the following prel code which fails to run because of the type
error for pvWriteArray

my $readVector;
my $writeVector;


my $result = XYZ::ABC( $readVector, $writeVector );

Any idea why the type checking is different?

Thanks,
-sanjay



-----Original Message-----
From: Luigi Ballabio [mailto:luigi.ballabio@xxxxxxxxxxxxx]
Sent: Tuesday, November 18, 2003 8:56 AM
To: Nair, Sanjay S
Cc: luigi.ballabio@xxxxxxxxxxxxx; swig@xxxxxxxxxxxxxxx
Subject: Re: [Swig] SWIG-PERL-Vector of pointers

On 2003.11.18 17:30, "Nair, Sanjay S" wrote:
> Do you have any perl example that uses Vector of pointers?

I don't use Perl myself. Maybe among the examples in the distribution,
but I'm not that sure...

Cheers,
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