diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2005-12-27 01:50:49 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2005-12-27 01:50:49 +0000 |
commit | 3db5c253dfa3079fca4327037f501ef227ec603a (patch) | |
tree | f3c7a071000bbfecc63947915b29095124d30ddd /Lib/csharp/std_vector.i | |
parent | a9afd37cbf3544226638a40d898395bbbde87598 (diff) | |
download | swig-3db5c253dfa3079fca4327037f501ef227ec603a.tar.gz |
Fix for vector of bool
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/csharp/std_vector.i')
-rwxr-xr-x | Lib/csharp/std_vector.i | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/csharp/std_vector.i b/Lib/csharp/std_vector.i index 8c2f889c6..9ec8ad060 100755 --- a/Lib/csharp/std_vector.i +++ b/Lib/csharp/std_vector.i @@ -170,6 +170,7 @@ public: typedef size_t size_type; typedef CTYPE value_type; + typedef const value_type& const_reference; %rename(Clear) clear; void clear(); %rename(Add) push_back; @@ -197,7 +198,7 @@ else throw std::out_of_range("index"); } - const value_type& getitem(int index) throw (std::out_of_range) { + const_reference getitem(int index) throw (std::out_of_range) { if (index>=0 && index<(int)self->size()) return (*self)[index]; else |