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:
parent
54350ea797
commit
74f4fc0b40
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue