Re: C++ : Creating Object by parameter with call of function

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

 



Hi Kristian,

Can you change the signature of the one dclass constructor to...
dclass(dclass const&)
...?

That would allow temporaries to be passed to the constructor without the compiler complaining that you are passing a temporary to a function (i.e., the constructor) which indicates that it intends to change/mutate the passed-in reference object because you don't have the const qualifier on the reference.

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