fix directors + std::string, reported in 1024595
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a34970d9fc
commit
08d78e941d
1 changed files with 6 additions and 2 deletions
|
|
@ -54,9 +54,13 @@ namespace std {
|
|||
$result = rb_str_new2($1->c_str());
|
||||
}
|
||||
|
||||
%typemap(directorin) string, const string &, string & "$1_name.c_str()";
|
||||
%typemap(directorin) string, const string &, string & {
|
||||
$input = rb_str_new2($1_name.c_str());
|
||||
}
|
||||
|
||||
%typemap(directorin) string *, const string * "$1_name->c_str()";
|
||||
%typemap(directorin) string *, const string * {
|
||||
$input = rb_str_new2($1_name->c_str());
|
||||
}
|
||||
|
||||
%typemap(directorout) string {
|
||||
if (TYPE($input) == T_STRING)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue