« Return to Thread: To accept one 1D-Numpy array and return another

Re: Suppress warning 511 for std::vector

by wsfulton :: Rate this Message:

Reply to Author | View in Thread

Geoffrey Philbrick writes:
>
> I have keywords enabled and I'm getting many warning 511 messages for
> std::vector. How do I suppress these just for the std::vector template? I
> tried the following with no luck.
>
> %warnfilter(511) std::vector;
> %warnfilter(511) std::vector<>;
> %warnfilter(511) std::vector<*>;

There are overloaded methods in both std::vector and in a helper wrapper called
swig::SwigPyIterator, so you need:

%warnfilter(511) std::vector;
%warnfilter(511) swig::SwigPyIterator;

William


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: To accept one 1D-Numpy array and return another