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 |
||
|---|---|---|
| .. | ||
| _std_deque.i | ||
| README | ||
| std_alloc.i | ||
| std_basic_string.i | ||
| std_carray.swg | ||
| std_char_traits.i | ||
| std_common.i | ||
| std_container.i | ||
| std_deque.i | ||
| std_except.i | ||
| std_ios.i | ||
| std_iostream.i | ||
| std_list.i | ||
| std_map.i | ||
| std_multimap.i | ||
| std_multiset.i | ||
| std_pair.i | ||
| std_queue.i | ||
| std_set.i | ||
| std_sstream.i | ||
| std_stack.i | ||
| std_streambuf.i | ||
| std_string.i | ||
| std_unordered_map.i | ||
| std_unordered_multimap.i | ||
| std_unordered_multiset.i | ||
| std_unordered_set.i | ||
| std_vector.i | ||
| std_vectora.i | ||
| std_wios.i | ||
| std_wiostream.i | ||
| std_wsstream.i | ||
| std_wstreambuf.i | ||
| std_wstring.i | ||
/* ----------------------------------------------------------------------------- * C++ STD + STL * ----------------------------------------------------------------------------- */ std_common.i general common code std_container.i general container code std_basic_string.i basic string std_char_traits.i char traits std_complex.i complex std_deque.i deque std_except.i exceptions std_ios.i ios std_iostream.i istream/ostream std_list.i list std_map.i map std_multimap.i multimap std_multiset.i multiset std_pair.i pair std_set.i set std_streambuf.i streambuf std_vector.i vector std_vectora.i vector + allocator