Commit Graph

8 Commits

Author SHA1 Message Date
William S Fulton daeaa6ab11 Visual C++ warning fixes 2023-12-30 13:49:40 +00:00
William S Fulton 08aee96cbd Remove assign method uses by the removed Python Sequence Protocol 2023-04-26 18:18:15 +01:00
William S Fulton b2fd91bc41 Add support for all STL containers to be constructible from a Python set 2023-04-26 18:18:15 +01:00
William S Fulton 6098b26f3e Iterator Protocol support for std::array wrappers
Introduce swig::IteratorProtocol class and assign which can be partially
specialized by different container types, such as std::array.
2023-04-26 18:18:11 +01:00
Daniel Vollmer e4c5d82c71 Python: Fix mixed signedness warning for std::array 2016-11-23 22:21:46 +01:00
William S Fulton 8c96b0de0b std::array unused parameter warning fixes 2015-12-05 09:00:04 +00:00
William S Fulton 93eb7eae0b Limited Python/Ruby support for boost::array
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.
2015-11-27 19:30:22 +00:00
William S Fulton 55bbf68512 Add std::array container wrappers for Python
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.
2015-11-17 07:27:48 +00:00