473,804 Members | 3,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Hello,

I am wrapping the reference container vector as document suggests.

typedef std::vector<CUE Entity*EntityCo ntainer;

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

class_<EntityCo ntainer>("Entit yContainer")
.def(vector_ind exing_suite<Ent ityContainer, 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.

regards
Aug 17 '08 #1
0 857

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1686
by: MM | last post by:
Hi, I installed Oracle Designer 9i and its repository in the database. When I start an entity-relationship diagram tool -> New diagram, I get a prompt to select a default container, but the list to choose from is empty. I try to make a new folder and select it but I can't make the tool to do it. When entering Repository Object Navigator I also need to select container and that works very nice.
1
1258
by: mulham.haffar | last post by:
Hi, im writing an application that uses tcpclient to connect. I have a class which makes the whole network stuff.. As below: Public Class Connections Private Client as tcpclient Private Stream as network stream Public Sub Connect() Client.Connect(..)
5
8027
by: maggie.nguyen | last post by:
Hi, I use Visual Studios 2005. In my project file, I include the library in linker: "Additional Library Directories: ..\..\boost\lib" I have these libs in the boost\lib directory: libboost_date_time-vc80-mt-1_33_1.lib
3
1617
by: ApexData | last post by:
Hello My MainForm manages Employee records. I have created another form that manages employee promotions. On the MainForm a button launches the PromotionForm and lists the promotions for the employee shown on the MainForm. The buttons clickevent looks like this: DoCmd.OpenForm stDocName, , , "EMPID = " & Me.txtEMPID The results are FILTERED. The Form is Continuous. Fields are: (EmpID) (Rank) (PromoDate) and UnboundTxtBox:
5
2625
by: ApexData | last post by:
My popup form can reference the MAINFORM by using either line of the code shown below: -------------------------------------------------------------------------------- ("F-PERS").Controls("cboEduc").Requery 'My reference using hidden text boxes. (txtFormName).Controls(txtComboName).Requery --------------------------------------------------------------------------------
15
2685
by: arnuld | last post by:
-------- PROGRAMME ----------- /* Stroustrup, 5.6 Structures STATEMENT: this programmes *tries* to do do this in 3 parts: 1.) it creates a "struct", named "jd", of type "address". 2. it then adds values to "jd" 3.) in the end it prints values of "jd".
2
2091
by: OuaisBla | last post by:
What I'd like to do and what I tought possible was to have a deque of string when the string was a reference (not a pointer) Then I simply tried: std::deque<std::string const &> mFifo; But, the compiler have some trouble with this at the first try. From what I know, template is a powerful mecanism an STL a well programmed library. I'm using VS2005 but STLPort seems with a quick look to suffer the same problem I will discuss shortly.
8
1948
by: Soneji | last post by:
Hello all! ( again ) Once more, I have a problem that seems unsolvable by me. I'm getting the, seemingly common, "undefined reference" linking error. I've tried quite a few things, but nothing is working. I'll list what I've tried at the end of my post. Until then, here's the error message, and the code ( Sorry...( length ) ) :
5
2917
by: Jun | last post by:
Hello, I've code like : =========================================== class A{ public : // create print content friend std::ostream& operator<< (std::ostream& os, const A& a);
0
9587
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.