469,358 Members | 1,688 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,358 developers. It's quick & easy.

Boost reference container problem( std::vector<AClass*>)


I am wrapping the reference container vector as document suggests.

typedef std::vector<CUEEntity*EntityContainer;

class_<CUEEntity>("Entity", init<CUEEntity*>());

.def(vector_indexing_suite<EntityContainer, true>() )

When I try to iterate in python all I get is the following error:
TypeError: No to_python (by-value) converter found for C++ type: class
CUEEntity *

As you can see CUEEntity is wrapped propery, and I am aable to access
and use that class without problems, I can not find the information on
adding return policies to wrapped container classes.

I will appreciate if you can point me solution or a sample.

Aug 17 '08 #1
0 742

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by mulham.haffar | last post: by
5 posts views Thread by maggie.nguyen | last post: by
5 posts views Thread by ApexData | last post: by
15 posts views Thread by arnuld | last post: by
5 posts views Thread by Jun | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.