This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error: no matching function for call to `Anton::Anton(Anton)`
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: e dot karge at struction dot de
- Cc: gcc-help at gcc dot gnu dot org
- Date: 08 Oct 2003 20:13:55 +0200
- Subject: Re: error: no matching function for call to `Anton::Anton(Anton)`
- References: <3311.172.19.104.110.1065634199.squirrel@webmail.medialisten.net>
"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