This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: no matching function for call to `Anton::Anton(Anton)`


Hi Eric,

Temporary objects are const.

Ponder this:  what would this mean...

void Change(int& i)
{
    i = 3;
}

int main()
{
    Change(7);
}

...?

HTH,
--Eljay



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]