c++: Function style initializer

Eljay Love-Jensen eljay@adobe.com
Tue May 13 11:35:00 GMT 2008


Hi jorges,

Your syntax is incorrect.

A myA1(myB); // Make an A, passing a B parameter.
A myA2(); // Declare a function myA2, which returns an A.
A myA3; // Make an A using default constructor.

HTH,
--Eljay



More information about the Gcc-help mailing list