added missing constructors for std::pair
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b7ff842e59
commit
4c4e3f47ad
9 changed files with 138 additions and 46 deletions
|
|
@ -16,16 +16,20 @@
|
|||
#include <utility>
|
||||
%}
|
||||
|
||||
// exported class
|
||||
|
||||
namespace std {
|
||||
|
||||
template<class T, class U> struct pair {
|
||||
// add typemaps here
|
||||
T first;
|
||||
U second;
|
||||
};
|
||||
template<class T, class U> struct pair {
|
||||
|
||||
// add specializations here
|
||||
pair();
|
||||
pair(T first, U second);
|
||||
pair(const pair& p);
|
||||
|
||||
template <class U1, class U2> pair(const pair<U1, U2> &p);
|
||||
|
||||
T first;
|
||||
U second;
|
||||
};
|
||||
|
||||
// add specializations here
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue