Mailinglist Archive: opensuse-packaging (232 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Patching for new GCC
- From: Ilya Chernykh <anixxsus@xxxxxxxxx>
- Date: Thu, 9 Feb 2012 22:44:58 +0400
- Message-id: <201202092244.59100.anixxsus@gmail.com>
On Thursday 09 February 2012 21:37:06 Claudio Freire wrote:
Then it says
error: expected initializer before '&' token
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
In an old code I have encountered the following error:
map.cpp:195:1: error: 'Map::Map' names the constructor, not the type
The code is as follows:
Map::Map & Map::operator = (Map const & map)
{
delete[] m_pieces;
init(map);
return *this;
}
I tried to remove the "::Map" but this did not help. Any ideas what should
I do?
Did you try typename Map::Map ?
(in any case, we need context, or we're guessing)
Then it says
error: expected initializer before '&' token
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx
| < Previous | Next > |