[C++-sig] How to use functionality of list.

2010-05-05 Thread vishal bayskar
Actually I am able create wrapper code for list . All the functions of list are exposed. But when I try to compile it (try to create shared library) it showing below error --- testModule.cpp:11: error: _Alloc was not declared in this scope testModule.cpp:18: error: _Tp was not declared in

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread Roman Yakovenko
On Wed, May 5, 2010 at 1:19 PM, vishal bayskar wrote: > > Actually I am able create wrapper code for list . All the functions of list > are exposed. > But when I try to compile it (try to create shared library) it showing below > error > ... > mb=module_builder.module_builder_t(["./listP.cpp"], >

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread vishal bayskar
>There is no need to expose std containers directly. Instead, expose >declarations that are using them and Py++ will do the rest. >mb.free_function( 'getDummyAlist' ).include() >This topic is covered in the following document: >http://language-binding.net/pyplusplus/documentation/containers.html

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread Roman Yakovenko
On Wed, May 5, 2010 at 2:20 PM, vishal bayskar wrote: > >>There is no need to expose std containers directly. Instead, expose >>declarations that are using them and Py++ will do the rest. > >>mb.free_function( 'getDummyAlist' ).include() > >>This topic is covered in the following document: >>http:

Re: [C++-sig] How to use functionality of list.

2010-05-05 Thread vishal bayskar
>Both indexing suites provides interface very similar to Python >containers. So the user will not have to learn new API, but if you >insists, you can rename/introduce new method from Python >AList.push_back = AList.append But object Alist is not treated as a list and giving the below error. >>>