Tim Moore wrote:
> Csaba Halász wrote:
>> Hi!
>>
>> The copy constructor in question:
>>
>> 145     FGEnvironment::FGEnvironment (const FGEnvironment &env)
>> 146     {
>> 147         FGEnvironment();
>> 148         copy(env);
>> 149     }
>>
>> I guess that wants to call the default constructor first. However,
>> that doesn't work. See
>> http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.3 for details.
...
>> This is trivial to fix, except it is not obvious whether the members
>> missing from the copy() function are missing deliberately. Also
>> unclear: do we really want to call the functions in the default
>> constructor *before* the copy?
It seems that that has been the intent for the last 5.5 years. The copy 
function 
doesn't set up the tables, which are surely needed in the new object.

I checked in a fix.
Tim

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to