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 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

Re: [C++-sig] No to_python (by-value) converter found for C++ type

2010-05-25 Thread abhi.sri45
Hi, > In this case the class indeed noncopyable. I could not get this because, in my example program which I send earlier, there is a function CallResult getCallResult() { Simple si; return CallResult(SUCCESS, si); } Temporary object is created in return statement and hence it

Re: [C++-sig] No to_python (by-value) converter found for C++ type

2010-05-24 Thread abhi.sri45
Hi, >mb = module_builder_t( ... ) >mb.class_(...).noncopyable = False This does not works in my case. Example code is: enum CallStatus { SUCCESS = 423, FAILURE = 764 }; template struct CallResult { public: CallResult(CallStatus const callStatus) : status(callSt