From 7cd6aef37631b7e0bc31d4e272615acbfd9a806b Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 30 Mar 2004 08:01:46 +0000 Subject: [PATCH] fix for old STL std::string git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5801 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/python/std_string.i | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SWIG/Lib/python/std_string.i b/SWIG/Lib/python/std_string.i index fe7ce831b..d8431d912 100644 --- a/SWIG/Lib/python/std_string.i +++ b/SWIG/Lib/python/std_string.i @@ -12,6 +12,10 @@ // However, I think I'll wait until someone asks for it... // ------------------------------------------------------------------------ +// Use the following macro with modern STL implementations +//#define SWIG_STD_STRING_MODERN + + %include exception.i %include std_container.i @@ -23,6 +27,13 @@ namespace std { template class basic_string { +#ifdef SWIG_STD_STRING_MODERN + %ignore push_back; + %ignore clear; + %ignore compare; + %ignore append; +#endif + public: typedef size_t size_type; typedef ptrdiff_t difference_type;