« 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

You are using an old version of SWIG. PySwigIterator is now
SwigPyIterator to conform to Python naming recommendations. With this
old version you need:

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

William
Geoffrey Philbrick wrote:

> Thanks, but still no luck. Here are the statements in the interface file:
>
> %warnfilter(511) std::vector;
> %warnfilter(511) swig::SwigPyIterator;
> %include std_vector.i
>
> This did get rid of warnings generated at
>    std_vector.i:93 (%std_vector_methods(vector);)
> but not the ones generated at:
>    std_vector.i:134 (%std_vector_methods_val(vector);)
>
> Here are the warning messages:
>
> swig/1.3.31/python/pyiterators.swg:376: Warning(511): Can't use keyword
> arguments with overloaded functions.
> swig/1.3.31/python/pyiterators.swg:377: Warning(511): Can't use keyword
> arguments with overloaded functions.
> swig/1.3.31/std/std_vector.i:134: Warning(511): Can't use keyword arguments
> with overloaded functions.
> swig/1.3.31/std/std_vector.i:134: Warning(511): Can't use keyword arguments
> with overloaded functions.
> swig/1.3.31/std/std_vector.i:134: Warning(511): Can't use keyword arguments
> with overloaded functions.
>
> ...
>
> -----Original Message-----
> From: William S Fulton [mailto:wsf@...]
> Sent: Thursday, July 09, 2009 7:38 AM
> To: swig-user@...
> Subject: Re: [Swig-user] Suppress warning 511 for std::vector
>
> 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
>
>


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