From: Geoffrey P. <ge...@ex...> - 2009-07-09 13:01:01
|
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:ws...@fu...] Sent: Thursday, July 09, 2009 7:38 AM To: swi...@li... 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 Swi...@li... https://lists.sourceforge.net/lists/listinfo/swig-user |