[C++-sig] Can't get a simple example with fstream to compile & link
Stefan Seefeld
seefeld at sympatico.ca
Wed May 21 21:37:12 CEST 2003
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
More information about the Cplusplus-sig
mailing list