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)`


"e.karge" <e.karge@struction.de> writes:

> The following code snippet will generate the compiler message quoted
> in the subject line. However, things worked fine with gcc
> 2.95.3. What's the reason for this

You have no copy constructor (Anton(const Anton &a)).

> and is there any general solution to work around this?

Write one.

-- 
	Falk


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