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_registration_code( 'def( "begin", &::getA )' , works_on_instance = True) in codeGenerator scripts. But can I get some kind of solution where I can expose iterators(some kind of support available for iterators). With Regards, Abhishek Srivastava -- View this message in context: http://old.nabble.com/problem-exposing-iterators-tp28912265p28922372.html Sent from the Python - c++-sig mailing list archive at Nabble.com. _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig