472,142 Members | 1,171 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

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 796

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.