Fix STL wrappers to not generate <: digraphs.
For example std::vector<::X::Y> was sometimes generated, now corrected to std::vector< ::X::Y >.
This commit is contained in:
parent
625a405b8e
commit
6b4e57245d
33 changed files with 339 additions and 303 deletions
|
|
@ -200,7 +200,7 @@ namespace std {
|
|||
|
||||
#ifdef %swig_basic_string
|
||||
// Add swig/language extra methods
|
||||
%swig_basic_string(std::basic_string<_CharT, _Traits, _Alloc >);
|
||||
%swig_basic_string(std::basic_string< _CharT, _Traits, _Alloc >);
|
||||
#endif
|
||||
|
||||
#ifdef SWIG_EXPORT_ITERATOR_METHODS
|
||||
|
|
@ -238,19 +238,19 @@ namespace std {
|
|||
%newobject __radd__;
|
||||
%extend {
|
||||
|
||||
std::basic_string<_CharT,_Traits,_Alloc >* __add__(const basic_string& v) {
|
||||
std::basic_string<_CharT,_Traits,_Alloc >* res = new std::basic_string<_CharT,_Traits,_Alloc >(*self);
|
||||
std::basic_string< _CharT,_Traits,_Alloc >* __add__(const basic_string& v) {
|
||||
std::basic_string< _CharT,_Traits,_Alloc >* res = new std::basic_string< _CharT,_Traits,_Alloc >(*self);
|
||||
*res += v;
|
||||
return res;
|
||||
}
|
||||
|
||||
std::basic_string<_CharT,_Traits,_Alloc >* __radd__(const basic_string& v) {
|
||||
std::basic_string<_CharT,_Traits,_Alloc >* res = new std::basic_string<_CharT,_Traits,_Alloc >(v);
|
||||
std::basic_string< _CharT,_Traits,_Alloc >* __radd__(const basic_string& v) {
|
||||
std::basic_string< _CharT,_Traits,_Alloc >* res = new std::basic_string< _CharT,_Traits,_Alloc >(v);
|
||||
*res += *self;
|
||||
return res;
|
||||
}
|
||||
|
||||
std::basic_string<_CharT,_Traits,_Alloc > __str__() {
|
||||
std::basic_string< _CharT,_Traits,_Alloc > __str__() {
|
||||
return *self;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue