fix/apply naturalvar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ab03eb18e7
commit
e7191fece9
7 changed files with 22 additions and 8 deletions
|
|
@ -8,6 +8,11 @@
|
|||
#include <string>
|
||||
%}
|
||||
|
||||
namespace std
|
||||
{
|
||||
%naturalvar basic_string;
|
||||
}
|
||||
|
||||
|
||||
namespace std {
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
namespace std
|
||||
{
|
||||
%std_comp_methods(basic_string<char>);
|
||||
%naturalvar string;
|
||||
typedef basic_string<char> string;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
namespace std
|
||||
{
|
||||
%std_comp_methods(basic_string<wchar_t>);
|
||||
%naturalvar wstring;
|
||||
typedef basic_string<wchar_t> wstring;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
//
|
||||
// String
|
||||
//
|
||||
|
||||
|
||||
#ifndef SWIG_STD_BASIC_STRING
|
||||
#define SWIG_STD_STRING
|
||||
|
||||
|
|
@ -12,6 +14,7 @@
|
|||
|
||||
namespace std
|
||||
{
|
||||
%naturalvar string;
|
||||
class string;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
namespace std
|
||||
{
|
||||
%naturalvar wstring;
|
||||
class wstring;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue