Re: c++: Function style initializer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux