Need to use .c_str() not ->c_str() with "const std::string &".

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9427 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-10-10 11:44:08 +00:00
commit 74f4fc0b40

View file

@ -82,7 +82,7 @@ class string;
}
std::string $1_str($input);
$1 = &$1_str; %}
%typemap(out) const string & %{ $result = SWIG_csharp_string_callback($1->c_str()); %}
%typemap(out) const string & %{ $result = SWIG_csharp_string_callback($1.c_str()); %}
%typemap(csin) const string & "$csinput"
%typemap(csout, excode=SWIGEXCODE) const string & {
@ -99,7 +99,7 @@ class string;
static std::string $1_str($input);
$1 = &$1_str; %}
%typemap(directorin) const string & %{ $input = SWIG_csharp_string_callback($1->c_str()); %}
%typemap(directorin) const string & %{ $input = SWIG_csharp_string_callback($1.c_str()); %}
%typemap(csvarin, excode=SWIGEXCODE2) const string & %{
set {