Fixes to std_map and multimap. There's still a problem
of const correctness in the std swig STL library. Need to bring it up in the swig-devel list. Added new functions to swig_assert. Changed some tests to reflect these changes. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b72d6a93af
commit
a100f16bbd
22 changed files with 366 additions and 135 deletions
|
|
@ -1,11 +1,16 @@
|
|||
%module li_std_wstring
|
||||
%include <std_basic_string.i>
|
||||
%include <std_wstring.i>
|
||||
|
||||
|
||||
%inline %{
|
||||
#include <string>
|
||||
|
||||
typedef std::wstring A;
|
||||
struct A : std::wstring
|
||||
{
|
||||
A(const std::wstring& s) : std::wstring(s)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
struct B
|
||||
{
|
||||
|
|
@ -16,18 +21,10 @@ struct B
|
|||
char *cname;
|
||||
std::wstring name;
|
||||
A a;
|
||||
A typedefmethod(A a) {
|
||||
return a;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
A globala;
|
||||
|
||||
|
||||
wchar_t test_wcvalue_w() {
|
||||
return L'W';
|
||||
}
|
||||
|
||||
wchar_t test_wcvalue(wchar_t x) {
|
||||
return x;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue