From df698a8d32d2d25f99d596f992314df498451dd8 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 16 Mar 2009 21:39:36 +0000 Subject: [PATCH] minor rewrite git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11154 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/csharp/std_vector.i | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Lib/csharp/std_vector.i b/Lib/csharp/std_vector.i index 64b169572..285581a86 100644 --- a/Lib/csharp/std_vector.i +++ b/Lib/csharp/std_vector.i @@ -365,20 +365,15 @@ namespace std { template class vector { SWIG_STD_VECTOR_MINIMUM(T, const T*) }; -} - -// template specializations for std::vector -// these provide extra collections methods as operator== is defined - -// extra specialization for bool -namespace std { - template<> class vector { + // bool is a bit different in the C++ standard + template<> class vector { SWIG_STD_VECTOR_MINIMUM_INTERNAL(bool, bool, bool) SWIG_STD_VECTOR_EXTRA_OP_EQUALS_EQUALS(bool, bool) }; } -// primitive types specialization +// template specializations for std::vector +// these provide extra collections methods as operator== is defined SWIG_STD_VECTOR_SPECIALIZE(char, char) SWIG_STD_VECTOR_SPECIALIZE(sbyte, signed char) SWIG_STD_VECTOR_SPECIALIZE(byte, unsigned char)