diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-12 14:05:05 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2015-12-12 14:05:46 +0000 |
commit | 6b4e57245dcea7fb975aad8563bdbf5d9a786ce8 (patch) | |
tree | 484335f5668659f96b384dedecc2c0829123fca4 /Lib/std/std_deque.i | |
parent | 625a405b8e42f944fdc1a87e36725f03b8817a85 (diff) | |
download | swig-6b4e57245dcea7fb975aad8563bdbf5d9a786ce8.tar.gz |
Fix STL wrappers to not generate <: digraphs.
For example std::vector<::X::Y> was sometimes generated, now
corrected to std::vector< ::X::Y >.
Diffstat (limited to 'Lib/std/std_deque.i')
-rw-r--r-- | Lib/std/std_deque.i | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Lib/std/std_deque.i b/Lib/std/std_deque.i index a99763b79..29560caed 100644 --- a/Lib/std/std_deque.i +++ b/Lib/std/std_deque.i @@ -49,7 +49,7 @@ namespace std { - template<class _Tp, class _Alloc = allocator<_Tp> > + template<class _Tp, class _Alloc = allocator< _Tp > > class deque { public: typedef size_t size_type; @@ -63,11 +63,11 @@ namespace std { %traits_swigtype(_Tp); - %fragment(SWIG_Traits_frag(std::deque<_Tp, _Alloc >), "header", + %fragment(SWIG_Traits_frag(std::deque< _Tp, _Alloc >), "header", fragment=SWIG_Traits_frag(_Tp), fragment="StdDequeTraits") { namespace swig { - template <> struct traits<std::deque<_Tp, _Alloc > > { + template <> struct traits<std::deque< _Tp, _Alloc > > { typedef pointer_category category; static const char* type_name() { return "std::deque<" #_Tp " >"; @@ -76,18 +76,18 @@ namespace std { } } - %typemap_traits_ptr(SWIG_TYPECHECK_DEQUE, std::deque<_Tp, _Alloc >); + %typemap_traits_ptr(SWIG_TYPECHECK_DEQUE, std::deque< _Tp, _Alloc >); #ifdef %swig_deque_methods // Add swig/language extra methods - %swig_deque_methods(std::deque<_Tp, _Alloc >); + %swig_deque_methods(std::deque< _Tp, _Alloc >); #endif %std_deque_methods(deque); }; template<class _Tp, class _Alloc > - class deque<_Tp*, _Alloc > { + class deque< _Tp*, _Alloc > { public: typedef size_t size_type; typedef ptrdiff_t difference_type; @@ -100,11 +100,11 @@ namespace std { %traits_swigtype(_Tp); - %fragment(SWIG_Traits_frag(std::deque<_Tp*, _Alloc >), "header", + %fragment(SWIG_Traits_frag(std::deque< _Tp*, _Alloc >), "header", fragment=SWIG_Traits_frag(_Tp), fragment="StdDequeTraits") { namespace swig { - template <> struct traits<std::deque<_Tp*, _Alloc > > { + template <> struct traits<std::deque< _Tp*, _Alloc > > { typedef value_category category; static const char* type_name() { return "std::deque<" #_Tp " * >"; @@ -113,14 +113,14 @@ namespace std { } } - %typemap_traits_ptr(SWIG_TYPECHECK_DEQUE, std::deque<_Tp*, _Alloc >); + %typemap_traits_ptr(SWIG_TYPECHECK_DEQUE, std::deque< _Tp*, _Alloc >); #ifdef %swig_deque_methods_val // Add swig/language extra methods - %swig_deque_methods_val(std::deque<_Tp*, _Alloc >); + %swig_deque_methods_val(std::deque< _Tp*, _Alloc >); #endif - %std_deque_methods_val(std::deque<_Tp*, _Alloc >); + %std_deque_methods_val(std::deque< _Tp*, _Alloc >); }; } |