|
From: William S F. <ws...@fu...> - 2008-01-23 13:16:36
|
Has anybody got vector of const pointers to work with any of the
scripting languages? With Ruby and Python, at least, I get a pile of
type_name and type_info template errors which I havn't got to the bottom
of yet.
Typical example:
%module example
%include <std_vector.i>
%inline %{
#include <vector>
struct Calendar { ... };
void foo(std::vector<const Calendar *> calendars);
%}
%template(VectCalendar) std::vector<const Calendar*>;
The code compiles if I use a non-const Calendar* in %template, but then
a runtime error ensues when using 'foo'.
William
|