From ff75eef4780dcf7afcf0bbf966a55ddded30afc4 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 17 Oct 2006 21:43:40 +0000 Subject: [PATCH] const size_t& typemaps added git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9457 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/csharp/csharp.swg | 1 + Lib/csharp/std_common.i | 1 + Lib/java/java.swg | 1 + Lib/java/std_common.i | 1 + 4 files changed, 4 insertions(+) diff --git a/Lib/csharp/csharp.swg b/Lib/csharp/csharp.swg index 6ef2d188c..9141f1971 100644 --- a/Lib/csharp/csharp.swg +++ b/Lib/csharp/csharp.swg @@ -841,6 +841,7 @@ using System.Runtime.InteropServices; /* Some ANSI C typemaps */ %apply unsigned long { size_t }; +%apply const unsigned long & { const size_t & }; /* csharp keywords */ %include diff --git a/Lib/csharp/std_common.i b/Lib/csharp/std_common.i index 77044703a..cee11e8ca 100644 --- a/Lib/csharp/std_common.i +++ b/Lib/csharp/std_common.i @@ -1,4 +1,5 @@ %include %apply size_t { std::size_t }; +%apply const size_t& { const std::size_t& }; diff --git a/Lib/java/java.swg b/Lib/java/java.swg index 5d0dccc62..af76e11b4 100644 --- a/Lib/java/java.swg +++ b/Lib/java/java.swg @@ -1185,6 +1185,7 @@ SWIG_PROXY_CONSTRUCTOR(true, true, SWIGTYPE) /* Some ANSI C typemaps */ %apply unsigned long { size_t }; +%apply const unsigned long & { const size_t & }; /* java keywords */ %include diff --git a/Lib/java/std_common.i b/Lib/java/std_common.i index 77044703a..cee11e8ca 100644 --- a/Lib/java/std_common.i +++ b/Lib/java/std_common.i @@ -1,4 +1,5 @@ %include %apply size_t { std::size_t }; +%apply const size_t& { const std::size_t& };