std::string global and member variables are wrapped as strings by default

No need to use the %apply const std::string& { std::string* } trick anymore

Please test if possible, I can't run these languages.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8618 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-01-29 18:50:53 +00:00
commit 568141faf7
3 changed files with 6 additions and 0 deletions

View file

@ -20,6 +20,8 @@
namespace std {
%naturalvar string;
class string;
/* Overloading check */

View file

@ -24,6 +24,8 @@
%include <std_vector.i>
%naturalvar std::string;
namespace std {
template <class charT> class basic_string {
public:

View file

@ -11,6 +11,8 @@
namespace std {
%naturalvar string;
class string;
/* Overloading check */