logo       

Re: Can't get a simple example with fstream to compile & link: msg#00136

python.c++

Subject: Re: Can't get a simple example with fstream to compile & link

Fast Bike wrote:
Opps, I messed up when cutting and pasting my example
out of a larger sample.

The constructor shouldn't start to initialize
variables and should read:

PythonWrapper(int id) { myid = id; };

It's generally preferable to use the initializer list instead of doing
assignment within the constructor body.

Stefan


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise