using <> when including lib files, fix char{ANY], add char FIXSIZE[ANY], fix pyfragments.swg, fixing *.swg and *.i names
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6250 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7cc6470fe6
commit
b9bfda7868
29 changed files with 182 additions and 83 deletions
|
|
@ -2,7 +2,7 @@
|
|||
// std::set
|
||||
// Python implementation
|
||||
|
||||
%include std_set.i
|
||||
%include <std_set.i>
|
||||
|
||||
// Multiset
|
||||
|
||||
|
|
@ -44,7 +44,15 @@
|
|||
namespace swigpy {
|
||||
template <class PySeq, class T>
|
||||
void assign(const PySeq& pyseq, std::multiset<T>* seq) {
|
||||
#ifdef SWIG_STD_NOINSERT_TEMPLATE_STL
|
||||
typedef typename PySeq::value_type value_type;
|
||||
typename PySeq::const_iterator it = pyseq.begin();
|
||||
for (;it != pyseq.end(); ++it) {
|
||||
seq->insert(seq->end(),(value_type)(*it));
|
||||
}
|
||||
#else
|
||||
seq->insert(pyseq.begin(), pyseq.end());
|
||||
#endif
|
||||
}
|
||||
|
||||
template <class T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue