Re: [C++-sig] problem exposing iterators

2010-06-17 Thread abhi.sri45
Although for this case I can think of a workable solution, to create some kind of wrapper functions(only in bindings) which return *iterator by adding: classB = mb.class_( 'B' ) classB.add_declaration_code("A getA( B& b ){ vector< A >::iterator iter = b.begin(); return *iter ;}") classB.add_regi

[C++-sig] problem exposing iterators

2010-06-17 Thread Abhishek Srivastava
Hi, I am facing some problem in exposing iterator, for this I have created a sample problem(to communicate this problem) #include #include using namespace std; class A { }; typedef vector< A > vectorA; class B { public: typedef vectorA::iterator iter; iter begin() { return this->aVect.

[C++-sig] problem exposing iterators

2010-06-17 Thread abhi.sri45
Hi, I am facing some problem in exposing iterator(using pyplusplus), for this I have created a sample problem(to communicate this problem) #include #include using namespace std; class A { }; typedef vector< A > vectorA; class B { public: typedef vectorA::iterator iter; iter begin() { r