diff options
author | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-03-30 08:01:46 +0000 |
---|---|---|
committer | Marcelo Matus <mmatus@acms.arizona.edu> | 2004-03-30 08:01:46 +0000 |
commit | 55533e4dfdd737965417fe76f3a84098ba7bc852 (patch) | |
tree | 4e22ecbbc2a7b58c5c0ddebb3f1f198b3966d118 /Lib/python/std_string.i | |
parent | 1206afb516d2864b1e3b54f558e102e8982b7238 (diff) | |
download | swig-55533e4dfdd737965417fe76f3a84098ba7bc852.tar.gz |
fix for old STL std::string
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/python/std_string.i')
-rw-r--r-- | Lib/python/std_string.i | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/python/std_string.i b/Lib/python/std_string.i index fe7ce831b..d8431d912 100644 --- a/Lib/python/std_string.i +++ b/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 _CharT> 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; |