summaryrefslogtreecommitdiff
path: root/Lib/std
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for deprecated std::basic_string::reserve()William S Fulton2022-07-311-1/+10
|
* Add missing hasher and key_type typedefs to C++11 STL containersWilliam S Fulton2019-03-124-5/+14
|
* Correct unordered_set/unordered_multiset template Key parameter nameWilliam S Fulton2019-03-122-14/+14
|
* Consistent parameter names for std::pairWilliam S Fulton2019-02-141-8/+8
|
* Add STL container copy constructors where missingWilliam S Fulton2019-02-141-2/+2
| | | | Also provide consistent copy constructor declarations.
* Cosmetic STL typedef changesWilliam S Fulton2019-02-143-3/+0
|
* typedef declaration corrections for std::arrayWilliam S Fulton2019-02-141-2/+2
|
* Add missing typedefs to std::list + typedef correctionsWilliam S Fulton2019-02-141-2/+2
| | | | | | Numerous missing typedefs added. std::list<T*>::const_reference and std::list<T*>::reference specialization typedef fixes.
* Add missing typedefs to std::vector + typedef correctionsWilliam S Fulton2019-02-131-11/+11
| | | | | | | Tests for std::vector of pointers added which check std::vector<T*>::const_reference and std::vector<T*>::reference usage which gave compilation errors in Python and Perl which had specialized these vectors incorrectly.
* Add missing typedefs to std::mapWilliam S Fulton2019-02-131-1/+0
|
* Add missing parameter names in STL container wrappersWilliam S Fulton2019-02-1312-21/+21
| | | | | | | Mostly in STL copy constructors. Best to have parameter names as they make their way into the wrappers in some target languages.
* follow-up typosluz.paz2018-05-171-1/+1
|
* Cosmetic changes in C++11 std_unordered support filesWilliam S Fulton2017-02-104-12/+0
|
* fix a %fragment argument.Takashi Tamura2017-01-291-1/+1
|
* use %std_container_methods_without_reverse_iteratorsTakashi Tamura2017-01-293-9/+7
|
* fix Lib/std/std unordered containersTakashi Tamura2017-01-285-39/+30
|
* Refactor std_container iterator functionsWilliam S Fulton2017-01-271-3/+30
| | | | | This is for future improvements in the C++11 unordered containers which do not have reverse iterators.
* Fix a few minor inconsistencies in the STL wrappersWilliam S Fulton2016-11-295-8/+8
| | | | | Mainly to use a more normal constructor declaration and to enable classes with more than one template parameter to be used as container types.
* Add <typeinfo> header for std::bad_castDaniel Vollmer2016-09-171-0/+1
|
* Add std::bad_cast to std_except.iDaniel Vollmer2016-09-171-0/+4
| | | | | | This exception occurs when dynamic_cast<T&> fails. Fixes #783.
* Fix std::vector of pointers which failed if a pointer to a pointer of the ↵William S Fulton2016-07-281-3/+16
| | | | | | container element type existed (Python) Closes SF Bug 2359417 created after commit 93f039032204821d4fc363346587c90f640a1109 (svn rev 10958)
* Fix STL wrappers to not generate <: digraphs.William S Fulton2015-12-1219-171/+171
| | | | | For example std::vector<::X::Y> was sometimes generated, now corrected to std::vector< ::X::Y >.
* Limited Python/Ruby support for boost::arrayWilliam S Fulton2015-11-271-3/+0
| | | | | | | | | | | Hack to use the std::array support for boost::array. Is limited as it currently exposes some 'using' bugs in SWIG. For example, the type system fails to see that pointers to std::array and pointers to boost::array are the same. This approach saves having to maintain separate boost::array support. The 'using' bug ought to be fixed, otherwise separate boost_array.i files could be easily made from the std_array.i files.
* Add std::array container wrappers for PythonWilliam S Fulton2015-11-172-25/+137
| | | | | | These work much like any of the other STL containers except Python slicing is somewhat limited because the array is a fixed size. Only slices of the full size are supported.
* small suggestions for changes in std_ios.iKris Thielemans2014-08-121-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | Hi Would it be possible to add the following 2 typedefs to std_ios.i? typedef basic_ios<char> ios; typedef basic_ios<wchar_t> wios; at present, it contains only %template(ios) basic_ios<char>; %template(wios) basic_ios<wchar_t>; This means however that things like std::ios::openmode are currently not recognised by SWIG. With the above typedefs, they are. Similar typedefs should probably be added in std_iostream.i for ostream etc. Also, while checking std_ios.i, it seems that the definition of basic_ios has a copy-paste error in the private section (the constructor is still as ios_base). To avoid confusion, I suggest to change that. Below is a diff with the suggested changes. Kris
* Another revert fragment <stdexcept> for non-UTL languagesWilliam S Fulton2014-02-221-1/+1
|
* Revert fragment <stdexcept> for non-UTL languagesWilliam S Fulton2014-02-221-1/+3
|
* Move some header file includes into fragments for UTL languagesWilliam S Fulton2014-02-215-12/+8
|
* Add <string> fragmentWilliam S Fulton2014-02-152-12/+3
| | | | | Removes <string> include specifically for clang Cuts down on duplicate #include <string> in general
* Fix issue on clang about implicit instantiation of undefined templateMarvin Greenberg2014-02-041-1/+7
| | | | | | | | Generated code does not include <string>, which is referenced in templates. Clang may be incorrectly or aggresively instantiating some template. E.g., import_stl_b_wrap.cxx:3199:51: error: implicit instantiation of undefined template 'std::__1::basic_string<char, std::__1::char_traits<char>
* C++11 support for new versions of erase and insert in the STL containers.William S Fulton2013-12-225-16/+35
| | | | | | | | | | | | | | | | | | | | The erase and insert methods in the containers use const_iterator instead of iterator in C++11. There are times when the methods wrapped must match the parameters exactly. Specifically when full type information for template types is missing or SWIG fails to look up the type correctly, for example: %include <std_vector.i> typedef float Real; %template(RealVector) std::vector<Real>; SWIG does not find std::vector<Real>::iterator because %template using typedefs does not always work and so SWIG doesn't know if the type is copyable and so uses SwigValueWrapper<iterator> which does not support conversion to another type (const_iterator). This resulted in compilation errors when using the C++11 version of the containers. Closes #73
* Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-10-101-0/+14
|\ | | | | | | | | | | | | | | | | | | Conflicts: Examples/Makefile.in Examples/guile/Makefile.in Lib/php/php.swg Makefile.in Source/CParse/parser.y configure.ac
| * Copied std::pair<> fragment from Lib/std/std_map.i into ↵Andrew Simmons2013-07-251-0/+14
| | | | | | | | Lib/std/std_multimap.i. This fixes an error when a std::multimap template is wrapped by itself.
* | Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-01-285-10/+17
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parser.y still to be fixed up Conflicts: Doc/Devel/engineering.html Examples/Makefile.in Lib/allegrocl/allegrocl.swg Lib/csharp/csharp.swg Lib/csharp/enums.swg Lib/csharp/enumsimple.swg Lib/csharp/enumtypesafe.swg Lib/java/java.swg Lib/python/pydocs.swg Lib/r/rtype.swg Source/Include/swigwarn.h Source/Modules/octave.cxx Source/Modules/python.cxx Source/Modules/ruby.cxx Source/Swig/scanner.c Source/Swig/stype.c Source/Swig/swig.h configure.ac
| * Fix assorted typos.Olly Betts2013-01-082-2/+2
| | | | | | | | From https://sourceforge.net/p/swig/patches/332/ and some others too.
| * Add some missing STL container typedefs for PerlWilliam S Fulton2012-08-151-2/+7
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix missing stddef.h when %import of STL containers. Was causing compile ↵William S Fulton2012-03-201-1/+1
| | | | | | | | | | | | failures witht g++-4.6. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12939 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix #3475492 - iterating through std::vector wrappers of enumerations.William S Fulton2012-03-131-0/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12916 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fixed bug 2811549: const vs. non-const iterators for STL types.Stefan Zager2011-04-291-4/+4
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12645 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Add missing headers in generated STL wrappers to fix compilation with gcc-4.6William S Fulton2011-03-181-1/+2
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | merge revisions 11877-12162 from trunk to gsoc2009-matevzWilliam S Fulton2010-07-201-8/+8
|\ \ | |/ | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@12164 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * formatting change of const _TP * -> _TP const* merely to aid difference ↵William S Fulton2010-04-041-8/+8
| | | | | | | | | | | | debugging with vector of non-const pointers std::vector specialization git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11979 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | merge revisions 11243-11872 from trunk to gsoc2009-matevzWilliam S Fulton2010-07-202-7/+58
|\ \ | |/ | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@12162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * SWIG license change - The Examples and Lib move to a very permissive license ↵William S Fulton2010-02-271-3/+0
| | | | | | | | | | | | in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Add back in all the deque methodsWilliam S Fulton2009-12-151-6/+8
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11783 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * [PHP] "empty" is a reserved word in PHP, so rename empty() methodOlly Betts2009-12-041-7/+16
| | | | | | | | | | | | | | | | | | on STL classes to "is_empty()" (previously this was automatically renamed to "c_empty()"). *** POTENTIAL INCOMPATIBILITY *** git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11772 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix std::vector of const pointersWilliam S Fulton2009-10-201-0/+40
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11704 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | merge revisions 11872:11876 from trunk to gsoc2009-matevz branch - license ↵William S Fulton2010-03-061-3/+0
| | | | | | | | | | | | changes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11905 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | Removed decr-- Hash tables feature.Matevz Jekovec2009-08-144-0/+12
| | | | | | | | | | | | | | Added some comments. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11569 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | Added initial support for hash tables unordered_ types.Matevz Jekovec2009-07-186-2/+412
|/ | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11418 626c5289-ae23-0410-ae9c-e8d60b6d4f22