fix for old STL std::string
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5801 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1206afb516
commit
55533e4dfd
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue