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:
parent
edba3add6b
commit
568141faf7
3 changed files with 6 additions and 0 deletions
|
|
@ -20,6 +20,8 @@
|
|||
|
||||
namespace std {
|
||||
|
||||
%naturalvar string;
|
||||
|
||||
class string;
|
||||
|
||||
/* Overloading check */
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
%include <std_vector.i>
|
||||
|
||||
%naturalvar std::string;
|
||||
|
||||
namespace std {
|
||||
template <class charT> class basic_string {
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -11,6 +11,8 @@
|
|||
|
||||
namespace std {
|
||||
|
||||
%naturalvar string;
|
||||
|
||||
class string;
|
||||
|
||||
/* Overloading check */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue