diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2006-02-08 22:23:03 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2006-02-08 22:23:03 +0000 |
commit | 0b37423ca16d8a1c1074d2133b9dc48de26e9b6b (patch) | |
tree | 4aba6322917f12eb643d769bcf65bcb03f71ffbe /Lib/csharp/std_vector.i | |
parent | ceaeb49a9f3dcc56bf6090721aa3fa35c8324706 (diff) | |
download | swig-0b37423ca16d8a1c1074d2133b9dc48de26e9b6b.tar.gz |
Add in specialization for pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8748 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/csharp/std_vector.i')
-rwxr-xr-x | Lib/csharp/std_vector.i | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/csharp/std_vector.i b/Lib/csharp/std_vector.i index 9ec8ad060..d18ff6504 100755 --- a/Lib/csharp/std_vector.i +++ b/Lib/csharp/std_vector.i @@ -348,6 +348,13 @@ namespace std { template<class T> class vector { SWIG_STD_VECTOR_MINIMUM(T, T) }; + // specializations for pointers + template<class T> class vector<T*> { + SWIG_STD_VECTOR_MINIMUM(T, T*) + }; + template<class T> class vector<const T*> { + SWIG_STD_VECTOR_MINIMUM(T, const T*) + }; } // template specializations for std::vector |