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
|
|
@ -43,8 +43,8 @@ namespace std {
|
|||
|
||||
//unordered_multiset
|
||||
|
||||
template <class _Key, class _Compare = std::less<_Key>,
|
||||
class _Alloc = allocator<_Key> >
|
||||
template <class _Key, class _Compare = std::less< _Key >,
|
||||
class _Alloc = allocator< _Key > >
|
||||
class unordered_multiset {
|
||||
public:
|
||||
typedef size_t size_type;
|
||||
|
|
@ -59,11 +59,11 @@ namespace std {
|
|||
|
||||
%traits_swigtype(_Key);
|
||||
|
||||
%fragment(SWIG_Traits_frag(std::unordered_multiset<_Key, _Compare, _Alloc >), "header",
|
||||
%fragment(SWIG_Traits_frag(std::unordered_multiset< _Key, _Compare, _Alloc >), "header",
|
||||
fragment=SWIG_Traits_frag(_Key),
|
||||
fragment="StdMultisetTraits") {
|
||||
namespace swig {
|
||||
template <> struct traits<std::unordered_multiset<_Key, _Compare, _Alloc > > {
|
||||
template <> struct traits<std::unordered_multiset< _Key, _Compare, _Alloc > > {
|
||||
typedef pointer_category category;
|
||||
static const char* type_name() {
|
||||
return "std::unordered_multiset<" #_Key "," #_Compare "," #_Alloc " >";
|
||||
|
|
@ -72,13 +72,13 @@ namespace std {
|
|||
}
|
||||
}
|
||||
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_MULTISET, std::unordered_multiset<_Key, _Compare, _Alloc >);
|
||||
%typemap_traits_ptr(SWIG_TYPECHECK_MULTISET, std::unordered_multiset< _Key, _Compare, _Alloc >);
|
||||
|
||||
unordered_multiset( const _Compare& );
|
||||
|
||||
#ifdef %swig_unordered_multiset_methods
|
||||
// Add swig/language extra methods
|
||||
%swig_unordered_multiset_methods(std::unordered_multiset<_Key, _Compare, _Alloc >);
|
||||
%swig_unordered_multiset_methods(std::unordered_multiset< _Key, _Compare, _Alloc >);
|
||||
#endif
|
||||
|
||||
%std_unordered_multiset_methods(unordered_multiset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue