Examples updated.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5206 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Art Yerkes 2003-10-25 06:24:43 +00:00
commit 55a611ede1
5 changed files with 6 additions and 4 deletions

View file

@ -8,10 +8,8 @@
%include stl.i
/* instantiate the required template specializations */
namespace std {
%template(IntVector) std::vector<int>;
%template(DoubleVector) std::vector<double>;
}
%template(IntVector) std::vector<int>;
%template(DoubleVector) std::vector<double>;
/* Let's just grab the original header file here */
%include "example.h"

View file

@ -1,5 +1,6 @@
(* This example was mostly lifted from the guile example directory *)
open Swig
open Example
(* repeatedly invoke a procedure with v and an index as arguments *)