From: William S F. <ws...@fu...> - 2011-01-07 19:33:26
|
On 06/01/11 10:42, Mathieu Malaterre wrote: > class my_vector > { > std::vector<int> I; > public: > typedef std::vector<int>::size_type SizeType; // not working > //typedef size_t SizeType; // working > > SizeType Count() const; > }; > Add in an empty template instantiation to get the type system to recognise it as you'd expect: %template() std::vector<int>; A named %template instantiation will work too, but that will generate a proxy class for std::vector which you probably don't want. William |